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

"""
uexcorpapi

This file was automatically generated by APIMATIC v3.0 (
 https://www.apimatic.io ).
"""
from uexcorpapi.api_helper import APIHelper


class Data32(object):

    """Implementation of the 'Data32' model.

    Attributes:
        content (str): The model property of type str.
        date_updated (str): The model property of type str.
        id (str): The model property of type str.
        additional_properties (Dict[str, Any]): The additional properties for
            the model.

    """

    # Create a mapping from Model property names to API property names
    _names = {
        "content": 'content',
        "date_updated": 'date_updated',
        "id": 'id'
    }

    def __init__(self,
                 content=None,
                 date_updated=None,
                 id=None,
                 additional_properties=None):
        """Constructor for the Data32 class"""

        # Initialize members of the class
        self.content = content 
        self.date_updated = date_updated 
        self.id = id 

        # Add additional model properties to the instance
        if additional_properties is None:
            additional_properties = {}
        self.additional_properties = additional_properties

    @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 not isinstance(dictionary, dict) or dictionary is None:
            return None

        # Extract variables from the dictionary
        content = dictionary.get("content") if dictionary.get("content") else None
        date_updated = dictionary.get("date_updated") if dictionary.get("date_updated") else None
        id = dictionary.get("id") if dictionary.get("id") else None
        additional_properties = APIHelper.get_additional_properties(
            dictionary={k: v for k, v in dictionary.items() if k not in cls._names.values()},
            unboxing_function=lambda value: value)
        # Return an object of this model
        return cls(content,
                   date_updated,
                   id,
                   additional_properties)

    def __repr__(self):
        return (f'{self.__class__.__name__}('
                f'content={self.content!r}, '
                f'date_updated={self.date_updated!r}, '
                f'id={self.id!r}, '
                f'additional_properties={self.additional_properties!r})')

    def __str__(self):
        return (f'{self.__class__.__name__}('
                f'content={self.content!s}, '
                f'date_updated={self.date_updated!s}, '
                f'id={self.id!s}, '
                f'additional_properties={self.additional_properties!s})')
