PaymentMethodDetailsBancontact.fromJson constructor
PaymentMethodDetailsBancontact.fromJson(
- Object? json
Implementation
factory PaymentMethodDetailsBancontact.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentMethodDetailsBancontact(
bankCode: map['bank_code'] == null ? null : (map['bank_code'] as String),
bankName: map['bank_name'] == null ? null : (map['bank_name'] as String),
bic: map['bic'] == null ? null : (map['bic'] as String),
generatedSepaDebit: map['generated_sepa_debit'] == null
? null
: PaymentMethodOrId.fromJson(map['generated_sepa_debit']),
generatedSepaDebitMandate: map['generated_sepa_debit_mandate'] == null
? null
: MandateOrId.fromJson(map['generated_sepa_debit_mandate']),
ibanLast4:
map['iban_last4'] == null ? null : (map['iban_last4'] as String),
preferredLanguage: map['preferred_language'] == null
? null
: PaymentMethodDetailsBancontactPreferredLanguage.fromJson(
map['preferred_language']),
verifiedName: map['verified_name'] == null
? null
: (map['verified_name'] as String),
);
}