toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (consolidatedInvoice != null)
        'consolidatedInvoice': consolidatedInvoice!,
      if (countryCode != null) 'countryCode': countryCode!,
      if (currencyCode != null) 'currencyCode': currencyCode!,
      if (id != null) 'id': id!,
      if (invoiceLevel != null) 'invoiceLevel': invoiceLevel!,
      if (isDefault != null) 'isDefault': isDefault!,
      if (kind != null) 'kind': kind!,
      if (name != null) 'name': name!,
      if (paymentsAccountId != null) 'paymentsAccountId': paymentsAccountId!,
      if (paymentsCustomerId != null)
        'paymentsCustomerId': paymentsCustomerId!,
      if (purchaseOrder != null) 'purchaseOrder': purchaseOrder!,
      if (secondaryPaymentsCustomerId != null)
        'secondaryPaymentsCustomerId': secondaryPaymentsCustomerId!,
      if (status != null) 'status': status!,
    };