GelatoIdNumberReport.fromJson constructor
GelatoIdNumberReport.fromJson(
- Object? json
Implementation
factory GelatoIdNumberReport.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return GelatoIdNumberReport(
dob: map['dob'] == null
? null
: GelatoDataVerifiedOutputsDate.fromJson(map['dob']),
error: map['error'] == null
? null
: GelatoIdNumberReportError.fromJson(map['error']),
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),
status: GelatoDocumentReportStatus.fromJson(map['status']),
);
}