SessionPaymentMethodOptions.fromJson constructor
SessionPaymentMethodOptions.fromJson(
- Object? json
Implementation
factory SessionPaymentMethodOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SessionPaymentMethodOptions(
acssDebit: map['acss_debit'] == null
? null
: SessionAcssDebit.fromJson(map['acss_debit']),
affirm: map['affirm'] == null
? null
: PaymentMethodOptionsZip.fromJson(map['affirm']),
afterpayClearpay: map['afterpay_clearpay'] == null
? null
: PaymentMethodOptionsZip.fromJson(map['afterpay_clearpay']),
alipay: map['alipay'] == null
? null
: PaymentMethodOptionsZip.fromJson(map['alipay']),
auBecsDebit: map['au_becs_debit'] == null
? null
: PaymentMethodOptionsZip.fromJson(map['au_becs_debit']),
bacsDebit: map['bacs_debit'] == null
? null
: PaymentMethodOptionsBacsDebit.fromJson(map['bacs_debit']),
bancontact: map['bancontact'] == null
? null
: PaymentMethodOptionsZip.fromJson(map['bancontact']),
boleto:
map['boleto'] == null ? null : SessionBoleto.fromJson(map['boleto']),
card: map['card'] == null ? null : SessionCard.fromJson(map['card']),
cashapp: map['cashapp'] == null
? null
: PaymentMethodOptionsBacsDebit.fromJson(map['cashapp']),
customerBalance: map['customer_balance'] == null
? null
: SessionCustomerBalance.fromJson(map['customer_balance']),
eps: map['eps'] == null
? null
: PaymentMethodOptionsZip.fromJson(map['eps']),
fpx: map['fpx'] == null
? null
: PaymentMethodOptionsZip.fromJson(map['fpx']),
giropay: map['giropay'] == null
? null
: PaymentMethodOptionsZip.fromJson(map['giropay']),
grabpay: map['grabpay'] == null
? null
: PaymentMethodOptionsZip.fromJson(map['grabpay']),
ideal: map['ideal'] == null
? null
: PaymentMethodOptionsZip.fromJson(map['ideal']),
klarna: map['klarna'] == null
? null
: PaymentMethodOptionsZip.fromJson(map['klarna']),
konbini: map['konbini'] == null
? null
: SessionKonbini.fromJson(map['konbini']),
link: map['link'] == null
? null
: PaymentMethodOptionsIdeal.fromJson(map['link']),
oxxo: map['oxxo'] == null ? null : SessionKonbini.fromJson(map['oxxo']),
p24: map['p24'] == null ? null : SessionP24.fromJson(map['p24']),
paynow: map['paynow'] == null
? null
: PaymentMethodOptionsZip.fromJson(map['paynow']),
paypal:
map['paypal'] == null ? null : SessionPaypal.fromJson(map['paypal']),
pix: map['pix'] == null ? null : SessionPix.fromJson(map['pix']),
revolutPay: map['revolut_pay'] == null
? null
: PaymentMethodOptionsIdeal.fromJson(map['revolut_pay']),
sepaDebit: map['sepa_debit'] == null
? null
: PaymentMethodOptionsBacsDebit.fromJson(map['sepa_debit']),
sofort: map['sofort'] == null
? null
: PaymentMethodOptionsZip.fromJson(map['sofort']),
swish: map['swish'] == null ? null : SessionSwish.fromJson(map['swish']),
usBankAccount: map['us_bank_account'] == null
? null
: SessionUsBankAccount.fromJson(map['us_bank_account']),
wechatPay: map['wechat_pay'] == null
? null
: SessionWechatPay.fromJson(map['wechat_pay']),
);
}