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)
def toSubgrant(soapDict): modelAttrs = flattenSoapDict(_subGrant, _grantAddrs, 'cfda_numbers', soapDict) return FSRSSubgrant(**modelAttrs)
def to_subgrant(soap_dict): model_attrs = flatten_soap_dict(_subGrant, _grantAddrs, 'cfda_numbers', soap_dict) return FSRSSubgrant(**model_attrs)