src/pds_doi_service/api/util.py
def deserialize_model(data, klass):
    """Deserializes list or dict to model.

    :param data: dict, list.
    :type data: dict | list
    :param klass: class literal.
    :return: model object.
    """
    instance = klass()

    if not instance.swagger_types:
        return data

    for attr, attr_type in six.iteritems(instance.swagger_types):
        if data is not None and instance.attribute_map[attr] in data and isinstance(data, (list, dict)):
            value = data[instance.attribute_map[attr]]
            setattr(instance, attr, _deserialize(value, attr_type))

    return instance
Deserializes list or dict to model.

    :param data: dict, list.
    :type data: dict | list
    :param klass: class literal.
    :return: model object.
    
Deserializes list or dict to model.
Deserializes list or dict to model .
def deserialize_model(data, klass):
    instance = klass()
    if not instance.swagger_types:
        return data
    for attr, attr_type in six.iteritems(instance.swagger_types):
        if data is not None and instance.attribute_map[attr] in data and isinstance(data, (list, dict)):
            value = data[instance.attribute_map[attr]]
            setattr(instance, attr, _deserialize(value, attr_type))
    return instance
def deserialize_model ( data , klass ) : instance = klass ( ) if not instance . swagger_types : return data for attr , attr_type in six . iteritems ( instance . swagger_types ) : if data is not None and instance . attribute_map [ attr ] in data and isinstance ( data , ( list , dict ) ) : value = data [ instance . attribute_map [ attr ] ] setattr ( instance , attr , _deserialize ( value , attr_type ) ) return instance
Deserializes list or dict to model.
Deserializes list or dict to model .
"""Deserializes list or dict to model.

    :param data: dict, list.
    :type data: dict | list
    :param klass: class literal.
    :return: model object.
    """
None
data
None
klass
None