# -*- coding: utf-8 -*-

"""
restapisdk

This file was automatically generated by APIMATIC v3.0 (
 https://www.apimatic.io ).
"""


class PinboardDetails(object):

    """Implementation of the 'PinboardDetails' model.

    TODO: type model description here.

    Attributes:
        pinboard_id (string): pinboard id of recently pinned pinboard
        pinboard_name (string): pinboard name of recently pinned pinboard

    """

    # Create a mapping from Model property names to API property names
    _names = {
        "pinboard_id": 'pinboardId',
        "pinboard_name": 'pinboardName'
    }

    def __init__(self,
                 pinboard_id=None,
                 pinboard_name=None):
        """Constructor for the PinboardDetails class"""

        # Initialize members of the class
        self.pinboard_id = pinboard_id
        self.pinboard_name = pinboard_name

    @classmethod
    def from_dictionary(cls,
                        dictionary):
        """Creates an instance of this model from a dictionary

        Args:
            dictionary (dictionary): A dictionary representation of the object
            as obtained from the deserialization of the server's response. The
            keys MUST match property names in the API description.

        Returns:
            object: An instance of this structure class.

        """
        if dictionary is None:
            return None

        # Extract variables from the dictionary
        pinboard_id = dictionary.get('pinboardId')
        pinboard_name = dictionary.get('pinboardName')

        # Return an object of this model
        return cls(pinboard_id,
                   pinboard_name)
