fromMap static method

Implementation

static OrderBillingPreferencesBillingPreferences? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return OrderBillingPreferencesBillingPreferences(
    billingPeriod: readText(source['billing_period']),
    communicationProfile: readText(source['communication_profile']),
    consolidateInvoice: readFlag(source['consolidate_invoice']),
    consolidateKey: readText(source['consolidate_key']),
    fulfillmentMode: readText(source['fulfillment_mode']),
    fulfillmentTerm: readText(source['fulfillment_term']),
    invoiceMode: readText(source['invoice_mode']),
    invoiceTerm: readText(source['invoice_term']),
    paymentMode: readText(source['payment_mode']),
    paymentProcessor: readText(source['payment_processor']),
    paymentTerm: readText(source['payment_term']),
    paymentTermAlignment: readText(source['payment_term_alignment']),
    proformaProperties:
        OrderBillingPreferencesBillingPreferencesProformaProperties.fromMap(
            source['proforma_properties']),
  );
}