SourceTypeSepaDebit.fromJson constructor
SourceTypeSepaDebit.fromJson(
- Object? json
Implementation
factory SourceTypeSepaDebit.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SourceTypeSepaDebit(
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),
last4: map['last4'] == null ? null : (map['last4'] as String),
mandateReference: map['mandate_reference'] == null
? null
: (map['mandate_reference'] as String),
mandateUrl:
map['mandate_url'] == null ? null : (map['mandate_url'] as String),
);
}