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

"""
pqapiv2

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


class EmailAddress(object):

    """Implementation of the '_emailAddress' model.

    Contact email address for the user account

    Attributes:
        email (string): Email address for the user account

    """

    # Create a mapping from Model property names to API property names
    _names = {
        "email": 'email'
    }

    def __init__(self,
                 email=None):
        """Constructor for the EmailAddress class"""

        # Initialize members of the class
        self.email = email

    @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
        email = dictionary.get('email')

        # Return an object of this model
        return cls(email)
