# coding: utf-8

from __future__ import absolute_import
from swagger_server.models.scholix_identifier import ScholixIdentifier
from .base_model_ import Model
from datetime import date, datetime
from typing import List, Dict
from ..util import deserialize_model


class ScholixAuthorModel(Model):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """
    def __init__(self, identifier=None, name=None):
        """
        ScholixAuthorModel - a model defined in Swagger

        :param identifier: The identifier of this ScholixAuthorModel.
        :type identifier: List[ScholixIdentifier]
        :param name: The name of this ScholixAuthorModel.
        :type name: str
        """
        self.swagger_types = {
            'identifier': List[ScholixIdentifier],
            'name': str
        }

        self.attribute_map = {
            'identifier': 'Identifier',
            'name': 'Name'
        }

        self._identifier = identifier
        self._name = name

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

        :param dikt: A dict.
        :type: dict
        :return: The Scholix Author Model of this ScholixAuthorModel.
        :rtype: ScholixAuthorModel
        """
        return deserialize_model(dikt, cls)

    @property
    def identifier(self):
        """
        Gets the identifier of this ScholixAuthorModel.

        :return: The identifier of this ScholixAuthorModel.
        :rtype: List[ScholixIdentifier]
        """
        return self._identifier

    @identifier.setter
    def identifier(self, identifier):
        """
        Sets the identifier of this ScholixAuthorModel.

        :param identifier: The identifier of this ScholixAuthorModel.
        :type identifier: List[ScholixIdentifier]
        """

        self._identifier = identifier

    @property
    def name(self):
        """
        Gets the name of this ScholixAuthorModel.

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

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

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

        self._name = name

