PaymentMethodOptionsCustomerBalance.fromJson constructor

PaymentMethodOptionsCustomerBalance.fromJson(
  1. Object? json
)

Implementation

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