Source code for swagger_server.models.purged_invitations

# coding: utf-8

from __future__ import absolute_import
from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from swagger_server.models.base_model_ import Model
from swagger_server import util


[docs]class PurgedInvitations(Model): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self, amount: int=None): # noqa: E501 """PurgedInvitations - a model defined in Swagger :param amount: The amount of this PurgedInvitations. # noqa: E501 :type amount: int """ self.swagger_types = { 'amount': int } self.attribute_map = { 'amount': 'amount' } self._amount = amount
[docs] @classmethod def from_dict(cls, dikt) -> 'PurgedInvitations': """Returns the dict as a model :param dikt: A dict. :type: dict :return: The purged_invitations of this PurgedInvitations. # noqa: E501 :rtype: PurgedInvitations """ return util.deserialize_model(dikt, cls)
@property def amount(self) -> int: """Gets the amount of this PurgedInvitations. :return: The amount of this PurgedInvitations. :rtype: int """ return self._amount @amount.setter def amount(self, amount: int): """Sets the amount of this PurgedInvitations. :param amount: The amount of this PurgedInvitations. :type amount: int """ if amount is None: raise ValueError("Invalid value for `amount`, must not be `None`") # noqa: E501 self._amount = amount