PaymentMethodConfigurationCreateOptions.fromJson constructor
PaymentMethodConfigurationCreateOptions.fromJson(
- Object? json
Implementation
factory PaymentMethodConfigurationCreateOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentMethodConfigurationCreateOptions(
acssDebit: map['acss_debit'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['acss_debit']),
affirm: map['affirm'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['affirm']),
afterpayClearpay: map['afterpay_clearpay'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(
map['afterpay_clearpay']),
alipay: map['alipay'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['alipay']),
applePay: map['apple_pay'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['apple_pay']),
applePayLater: map['apple_pay_later'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(
map['apple_pay_later']),
auBecsDebit: map['au_becs_debit'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['au_becs_debit']),
bacsDebit: map['bacs_debit'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['bacs_debit']),
bancontact: map['bancontact'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['bancontact']),
blik: map['blik'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['blik']),
boleto: map['boleto'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['boleto']),
card: map['card'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['card']),
cartesBancaires: map['cartes_bancaires'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(
map['cartes_bancaires']),
cashapp: map['cashapp'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['cashapp']),
customerBalance: map['customer_balance'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(
map['customer_balance']),
eps: map['eps'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['eps']),
expand: map['expand'] == null
? null
: (map['expand'] as List<Object?>)
.map((el) => (el as String))
.toList(),
fpx: map['fpx'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['fpx']),
giropay: map['giropay'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['giropay']),
googlePay: map['google_pay'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['google_pay']),
grabpay: map['grabpay'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['grabpay']),
ideal: map['ideal'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['ideal']),
jcb: map['jcb'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['jcb']),
klarna: map['klarna'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['klarna']),
konbini: map['konbini'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['konbini']),
link: map['link'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['link']),
name: map['name'] == null ? null : (map['name'] as String),
oxxo: map['oxxo'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['oxxo']),
p24: map['p24'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['p24']),
parent: map['parent'] == null ? null : (map['parent'] as String),
paynow: map['paynow'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['paynow']),
paypal: map['paypal'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['paypal']),
promptpay: map['promptpay'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['promptpay']),
revolutPay: map['revolut_pay'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['revolut_pay']),
sepaDebit: map['sepa_debit'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['sepa_debit']),
sofort: map['sofort'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['sofort']),
usBankAccount: map['us_bank_account'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(
map['us_bank_account']),
wechatPay: map['wechat_pay'] == null
? null
: PaymentMethodConfigurationAcssDebit.fromJson(map['wechat_pay']),
);
}