CardholderIndividual.fromJson constructor
CardholderIndividual.fromJson(
- Object? json
Implementation
factory CardholderIndividual.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return CardholderIndividual(
cardIssuing: map['card_issuing'] == null
? null
: CardholderCardIssuing.fromJson(map['card_issuing']),
dob: map['dob'] == null ? null : AccountDob.fromJson(map['dob']),
firstName:
map['first_name'] == null ? null : (map['first_name'] as String),
lastName: map['last_name'] == null ? null : (map['last_name'] as String),
verification: map['verification'] == null
? null
: AccountVerification.fromJson(map['verification']),
);
}