fromMap static method

ExpressBillingPreferences? fromMap(
  1. Object? body
)

Implementation

static ExpressBillingPreferences? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return ExpressBillingPreferences(
    billingPeriod: readText(source['billing_period']),
    communicationProfile: readText(source['communication_profile']),
    consolidateInvoice: readFlag(source['consolidate_invoice']),
    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: ExpressBillingPreferencesProformaProperties.fromMap(
        source['proforma_properties']),
  );
}