CheckoutCustomerBalancePaymentMethodOptions.fromJson constructor

CheckoutCustomerBalancePaymentMethodOptions.fromJson(
  1. Object? json
)

Implementation

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