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)
def toSubcontract(soapDict): modelAttrs = flattenSoapDict(_subContract, _contractAddrs, 'bus_types', soapDict) return FSRSSubcontract(**modelAttrs)
def to_subcontract(soap_dict): model_attrs = flatten_soap_dict(_subContract, _contractAddrs, 'bus_types', soap_dict) return FSRSSubcontract(**model_attrs)