PaymentMethodSepaDebit.fromJson constructor
PaymentMethodSepaDebit.fromJson(
- Object? json
Implementation
factory PaymentMethodSepaDebit.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentMethodSepaDebit(
bankCode: map['bank_code'] == null ? null : (map['bank_code'] as String),
branchCode:
map['branch_code'] == null ? null : (map['branch_code'] as String),
country: map['country'] == null ? null : (map['country'] as String),
fingerprint:
map['fingerprint'] == null ? null : (map['fingerprint'] as String),
generatedFrom: map['generated_from'] == null
? null
: PaymentMethodSepaDebitGeneratedFrom.fromJson(map['generated_from']),
last4: map['last4'] == null ? null : (map['last4'] as String),
);
}