SetupAttemptPaymentMethodDetails.fromJson constructor
SetupAttemptPaymentMethodDetails.fromJson(
- Object? json
Implementation
factory SetupAttemptPaymentMethodDetails.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SetupAttemptPaymentMethodDetails(
acssDebit: map['acss_debit'] == null
? null
: SetupAttemptPaymentMethodDetailsAcssDebit.fromJson(
map['acss_debit']),
auBecsDebit: map['au_becs_debit'] == null
? null
: SetupAttemptPaymentMethodDetailsAuBecsDebit.fromJson(
map['au_becs_debit']),
bacsDebit: map['bacs_debit'] == null
? null
: SetupAttemptPaymentMethodDetailsBacsDebit.fromJson(
map['bacs_debit']),
bancontact: map['bancontact'] == null
? null
: SetupAttemptPaymentMethodDetailsBancontact.fromJson(
map['bancontact']),
boleto: map['boleto'] == null
? null
: SetupAttemptPaymentMethodDetailsBoleto.fromJson(map['boleto']),
card: map['card'] == null
? null
: SetupAttemptPaymentMethodDetailsCard.fromJson(map['card']),
cardPresent: map['card_present'] == null
? null
: SetupAttemptPaymentMethodDetailsCardPresent.fromJson(
map['card_present']),
cashapp: map['cashapp'] == null
? null
: SetupAttemptPaymentMethodDetailsCashapp.fromJson(map['cashapp']),
ideal: map['ideal'] == null
? null
: SetupAttemptPaymentMethodDetailsIdeal.fromJson(map['ideal']),
klarna: map['klarna'] == null
? null
: SetupAttemptPaymentMethodDetailsKlarna.fromJson(map['klarna']),
link: map['link'] == null
? null
: SetupAttemptPaymentMethodDetailsLink.fromJson(map['link']),
paypal: map['paypal'] == null
? null
: SetupAttemptPaymentMethodDetailsPaypal.fromJson(map['paypal']),
sepaDebit: map['sepa_debit'] == null
? null
: SetupAttemptPaymentMethodDetailsSepaDebit.fromJson(
map['sepa_debit']),
sofort: map['sofort'] == null
? null
: SetupAttemptPaymentMethodDetailsSofort.fromJson(map['sofort']),
type: (map['type'] as String),
usBankAccount: map['us_bank_account'] == null
? null
: SetupAttemptPaymentMethodDetailsUsBankAccount.fromJson(
map['us_bank_account']),
);
}