PaymentIntentPaymentMethodOptions.fromJson constructor
PaymentIntentPaymentMethodOptions.fromJson(
- Object? json
Implementation
factory PaymentIntentPaymentMethodOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentPaymentMethodOptions(
acssDebit: map['acss_debit'] == null
? null
: PaymentIntentPaymentMethodOptionsAcssDebit.fromJson(
map['acss_debit']),
affirm: map['affirm'] == null
? null
: PaymentMethodOptionsAffirm.fromJson(map['affirm']),
afterpayClearpay: map['afterpay_clearpay'] == null
? null
: PaymentMethodOptionsAfterpayClearpay.fromJson(
map['afterpay_clearpay']),
alipay: map['alipay'] == null
? null
: PaymentMethodOptionsAlipay.fromJson(map['alipay']),
auBecsDebit: map['au_becs_debit'] == null
? null
: PaymentIntentPaymentMethodOptionsAuBecsDebit.fromJson(
map['au_becs_debit']),
bacsDebit: map['bacs_debit'] == null
? null
: PaymentMethodOptionsBacsDebit.fromJson(map['bacs_debit']),
bancontact: map['bancontact'] == null
? null
: PaymentMethodOptionsBancontact.fromJson(map['bancontact']),
blik: map['blik'] == null
? null
: PaymentIntentPaymentMethodOptionsBlik.fromJson(map['blik']),
boleto: map['boleto'] == null
? null
: PaymentMethodOptionsBoleto.fromJson(map['boleto']),
card: map['card'] == null
? null
: PaymentIntentPaymentMethodOptionsCard.fromJson(map['card']),
cardPresent: map['card_present'] == null
? null
: PaymentMethodOptionsCardPresent.fromJson(map['card_present']),
cashapp: map['cashapp'] == null
? null
: PaymentMethodOptionsCashapp.fromJson(map['cashapp']),
customerBalance: map['customer_balance'] == null
? null
: PaymentMethodOptionsCustomerBalance.fromJson(
map['customer_balance']),
eps: map['eps'] == null
? null
: PaymentIntentPaymentMethodOptionsEps.fromJson(map['eps']),
fpx: map['fpx'] == null
? null
: PaymentMethodOptionsFpx.fromJson(map['fpx']),
giropay: map['giropay'] == null
? null
: PaymentMethodOptionsGiropay.fromJson(map['giropay']),
grabpay: map['grabpay'] == null
? null
: PaymentMethodOptionsGrabpay.fromJson(map['grabpay']),
ideal: map['ideal'] == null
? null
: PaymentMethodOptionsIdeal.fromJson(map['ideal']),
interacPresent: map['interac_present'] == null
? null
: PaymentMethodOptionsInteracPresent.fromJson(map['interac_present']),
klarna: map['klarna'] == null
? null
: PaymentMethodOptionsKlarna.fromJson(map['klarna']),
konbini: map['konbini'] == null
? null
: PaymentMethodOptionsKonbini.fromJson(map['konbini']),
link: map['link'] == null
? null
: PaymentIntentPaymentMethodOptionsLink.fromJson(map['link']),
mobilepay: map['mobilepay'] == null
? null
: PaymentIntentPaymentMethodOptionsMobilepay.fromJson(
map['mobilepay']),
oxxo: map['oxxo'] == null
? null
: PaymentMethodOptionsOxxo.fromJson(map['oxxo']),
p24: map['p24'] == null
? null
: PaymentMethodOptionsP24.fromJson(map['p24']),
paynow: map['paynow'] == null
? null
: PaymentMethodOptionsPaynow.fromJson(map['paynow']),
paypal: map['paypal'] == null
? null
: PaymentMethodOptionsPaypal.fromJson(map['paypal']),
pix: map['pix'] == null
? null
: PaymentMethodOptionsPix.fromJson(map['pix']),
promptpay: map['promptpay'] == null
? null
: PaymentMethodOptionsPromptpay.fromJson(map['promptpay']),
revolutPay: map['revolut_pay'] == null
? null
: PaymentMethodOptionsRevolutPay.fromJson(map['revolut_pay']),
sepaDebit: map['sepa_debit'] == null
? null
: PaymentIntentPaymentMethodOptionsSepaDebit.fromJson(
map['sepa_debit']),
sofort: map['sofort'] == null
? null
: PaymentMethodOptionsSofort.fromJson(map['sofort']),
swish: map['swish'] == null
? null
: PaymentIntentPaymentMethodOptionsSwish.fromJson(map['swish']),
usBankAccount: map['us_bank_account'] == null
? null
: PaymentIntentPaymentMethodOptionsUsBankAccount.fromJson(
map['us_bank_account']),
wechatPay: map['wechat_pay'] == null
? null
: PaymentMethodOptionsWechatPay.fromJson(map['wechat_pay']),
zip: map['zip'] == null
? null
: PaymentMethodOptionsZip.fromJson(map['zip']),
);
}