def to_subgrant(soap_dict):
    """ Extracts Subgrant object from soap dictionary

        Args:
            soap_dict: soap dictionary to parse

        Returns:
            Subgrant object
    """
    model_attrs = flatten_soap_dict(_subGrant, _grantAddrs, 'cfda_numbers', soap_dict)
    return FSRSSubgrant(**model_attrs)
예제 #2
0
def toSubgrant(soapDict):
    modelAttrs = flattenSoapDict(_subGrant, _grantAddrs, 'cfda_numbers',
                                 soapDict)
    return FSRSSubgrant(**modelAttrs)
예제 #3
0
def to_subgrant(soap_dict):
    model_attrs = flatten_soap_dict(_subGrant, _grantAddrs, 'cfda_numbers',
                                    soap_dict)
    return FSRSSubgrant(**model_attrs)