InvoicePaymentMethodOptionsCustomerBalance.fromJson constructor

InvoicePaymentMethodOptionsCustomerBalance.fromJson(
  1. Object? json
)

Implementation

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