from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from chromestatus_openapi.models.base_model import Model
from chromestatus_openapi import util


class AccountResponse(Model):
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

    Do not edit the class manually.
    """

    def __init__(self, is_admin=None, is_site_editor=None, email=None, id=None):  # noqa: E501
        """AccountResponse - a model defined in OpenAPI

        :param is_admin: The is_admin of this AccountResponse.  # noqa: E501
        :type is_admin: bool
        :param is_site_editor: The is_site_editor of this AccountResponse.  # noqa: E501
        :type is_site_editor: bool
        :param email: The email of this AccountResponse.  # noqa: E501
        :type email: str
        :param id: The id of this AccountResponse.  # noqa: E501
        :type id: int
        """
        self.openapi_types = {
            'is_admin': bool,
            'is_site_editor': bool,
            'email': str,
            'id': int
        }

        self.attribute_map = {
            'is_admin': 'is_admin',
            'is_site_editor': 'is_site_editor',
            'email': 'email',
            'id': 'id'
        }

        self._is_admin = is_admin
        self._is_site_editor = is_site_editor
        self._email = email
        self._id = id

    @classmethod
    def from_dict(cls, dikt) -> 'AccountResponse':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The AccountResponse of this AccountResponse.  # noqa: E501
        :rtype: AccountResponse
        """
        return util.deserialize_model(dikt, cls)

    @property
    def is_admin(self) -> bool:
        """Gets the is_admin of this AccountResponse.


        :return: The is_admin of this AccountResponse.
        :rtype: bool
        """
        return self._is_admin

    @is_admin.setter
    def is_admin(self, is_admin: bool):
        """Sets the is_admin of this AccountResponse.


        :param is_admin: The is_admin of this AccountResponse.
        :type is_admin: bool
        """

        self._is_admin = is_admin

    @property
    def is_site_editor(self) -> bool:
        """Gets the is_site_editor of this AccountResponse.


        :return: The is_site_editor of this AccountResponse.
        :rtype: bool
        """
        return self._is_site_editor

    @is_site_editor.setter
    def is_site_editor(self, is_site_editor: bool):
        """Sets the is_site_editor of this AccountResponse.


        :param is_site_editor: The is_site_editor of this AccountResponse.
        :type is_site_editor: bool
        """

        self._is_site_editor = is_site_editor

    @property
    def email(self) -> str:
        """Gets the email of this AccountResponse.


        :return: The email of this AccountResponse.
        :rtype: str
        """
        return self._email

    @email.setter
    def email(self, email: str):
        """Sets the email of this AccountResponse.


        :param email: The email of this AccountResponse.
        :type email: str
        """

        self._email = email

    @property
    def id(self) -> int:
        """Gets the id of this AccountResponse.


        :return: The id of this AccountResponse.
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id: int):
        """Sets the id of this AccountResponse.


        :param id: The id of this AccountResponse.
        :type id: int
        """

        self._id = id
