BillingProfile.fromJson constructor

BillingProfile.fromJson(
  1. Map json_
)

Implementation

BillingProfile.fromJson(core.Map json_)
    : this(
        consolidatedInvoice: json_.containsKey('consolidatedInvoice')
            ? json_['consolidatedInvoice'] as core.bool
            : null,
        countryCode: json_.containsKey('countryCode')
            ? json_['countryCode'] as core.String
            : null,
        currencyCode: json_.containsKey('currencyCode')
            ? json_['currencyCode'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        invoiceLevel: json_.containsKey('invoiceLevel')
            ? json_['invoiceLevel'] as core.String
            : null,
        isDefault: json_.containsKey('isDefault')
            ? json_['isDefault'] as core.bool
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        paymentsAccountId: json_.containsKey('paymentsAccountId')
            ? json_['paymentsAccountId'] as core.String
            : null,
        paymentsCustomerId: json_.containsKey('paymentsCustomerId')
            ? json_['paymentsCustomerId'] as core.String
            : null,
        purchaseOrder: json_.containsKey('purchaseOrder')
            ? json_['purchaseOrder'] as core.String
            : null,
        secondaryPaymentsCustomerId:
            json_.containsKey('secondaryPaymentsCustomerId')
                ? json_['secondaryPaymentsCustomerId'] as core.String
                : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
      );