def to_subcontract(soap_dict):
    """ Extracts Subcontract object from soap dictionary

        Args:
            soap_dict: soap dictionary to parse

        Returns:
            Subcontract object
    """
    model_attrs = flatten_soap_dict(_subContract, _contractAddrs, 'bus_types', soap_dict)
    return FSRSSubcontract(**model_attrs)
예제 #2
0
def toSubcontract(soapDict):
    modelAttrs = flattenSoapDict(_subContract, _contractAddrs, 'bus_types',
                                 soapDict)
    return FSRSSubcontract(**modelAttrs)
예제 #3
0
def to_subcontract(soap_dict):
    model_attrs = flatten_soap_dict(_subContract, _contractAddrs, 'bus_types',
                                    soap_dict)
    return FSRSSubcontract(**model_attrs)