InvoicePaymentMethodOptionsCustomerBalanceBankTransfer.fromJson constructor

InvoicePaymentMethodOptionsCustomerBalanceBankTransfer.fromJson(
  1. Object? json
)

Implementation

factory InvoicePaymentMethodOptionsCustomerBalanceBankTransfer.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return InvoicePaymentMethodOptionsCustomerBalanceBankTransfer(
    euBankTransfer: map['eu_bank_transfer'] == null
        ? null
        : InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer
            .fromJson(map['eu_bank_transfer']),
    type: map['type'] == null ? null : (map['type'] as String),
  );
}