SourceTypeAcssDebit.fromJson constructor
SourceTypeAcssDebit.fromJson(
- Object? json
Implementation
factory SourceTypeAcssDebit.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SourceTypeAcssDebit(
bankAddressCity: map['bank_address_city'] == null
? null
: (map['bank_address_city'] as String),
bankAddressLine1: map['bank_address_line_1'] == null
? null
: (map['bank_address_line_1'] as String),
bankAddressLine2: map['bank_address_line_2'] == null
? null
: (map['bank_address_line_2'] as String),
bankAddressPostalCode: map['bank_address_postal_code'] == null
? null
: (map['bank_address_postal_code'] as String),
bankName: map['bank_name'] == null ? null : (map['bank_name'] as String),
category: map['category'] == null ? null : (map['category'] 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),
routingNumber: map['routing_number'] == null
? null
: (map['routing_number'] as String),
);
}