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

    Do not edit the class manually.
    """

    def __init__(self, name=None, field=None):  # noqa: E501
        """ProgressItem - a model defined in OpenAPI

        :param name: The name of this ProgressItem.  # noqa: E501
        :type name: str
        :param field: The field of this ProgressItem.  # noqa: E501
        :type field: str
        """
        self.openapi_types = {
            'name': str,
            'field': str
        }

        self.attribute_map = {
            'name': 'name',
            'field': 'field'
        }

        self._name = name
        self._field = field

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

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

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


        :return: The name of this ProgressItem.
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name: str):
        """Sets the name of this ProgressItem.


        :param name: The name of this ProgressItem.
        :type name: str
        """

        self._name = name

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


        :return: The field of this ProgressItem.
        :rtype: str
        """
        return self._field

    @field.setter
    def field(self, field: str):
        """Sets the field of this ProgressItem.


        :param field: The field of this ProgressItem.
        :type field: str
        """

        self._field = field
