fromMap static method

OrderBillingPreferences? fromMap(
  1. Object? body
)

Implementation

static OrderBillingPreferences? fromMap(Object? body) {
  final source = readRecord(body, envelopeKey: 'order');
  if (source == null) return null;
  return OrderBillingPreferences(
    billingPreferences: OrderBillingPreferencesBillingPreferences.fromMap(
        source['billing_preferences']),
    object: readText(source['object']),
  );
}