GelatoVerifiedOutputs.fromJson constructor
GelatoVerifiedOutputs.fromJson(
- Object? json
Implementation
factory GelatoVerifiedOutputs.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return GelatoVerifiedOutputs(
address: map['address'] == null ? null : Address.fromJson(map['address']),
dob: map['dob'] == null
? null
: GelatoDataVerifiedOutputsDate.fromJson(map['dob']),
firstName:
map['first_name'] == null ? null : (map['first_name'] as String),
idNumber: map['id_number'] == null ? null : (map['id_number'] as String),
idNumberType: map['id_number_type'] == null
? null
: GelatoIdNumberReportIdNumberType.fromJson(map['id_number_type']),
lastName: map['last_name'] == null ? null : (map['last_name'] as String),
);
}