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 PostSettingsRequest(Model):
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

    Do not edit the class manually.
    """

    def __init__(self, notify=None):  # noqa: E501
        """PostSettingsRequest - a model defined in OpenAPI

        :param notify: The notify of this PostSettingsRequest.  # noqa: E501
        :type notify: bool
        """
        self.openapi_types = {
            'notify': bool
        }

        self.attribute_map = {
            'notify': 'notify'
        }

        self._notify = notify

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

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

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


        :return: The notify of this PostSettingsRequest.
        :rtype: bool
        """
        return self._notify

    @notify.setter
    def notify(self, notify: bool):
        """Sets the notify of this PostSettingsRequest.


        :param notify: The notify of this PostSettingsRequest.
        :type notify: bool
        """
        if notify is None:
            raise ValueError("Invalid value for `notify`, must not be `None`")  # noqa: E501

        self._notify = notify
