IdentityVerificationReport.fromJson constructor
IdentityVerificationReport.fromJson(
- Object? json
Implementation
factory IdentityVerificationReport.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return IdentityVerificationReport(
clientReferenceId: map['client_reference_id'] == null
? null
: (map['client_reference_id'] as String),
created:
DateTime.fromMillisecondsSinceEpoch((map['created'] as int).toInt()),
document: map['document'] == null
? null
: GelatoDocumentReport.fromJson(map['document']),
id: (map['id'] as String),
idNumber: map['id_number'] == null
? null
: GelatoIdNumberReport.fromJson(map['id_number']),
livemode: (map['livemode'] as bool),
options: map['options'] == null
? null
: GelatoVerificationReportOptions.fromJson(map['options']),
selfie: map['selfie'] == null
? null
: GelatoSelfieReport.fromJson(map['selfie']),
type: IdentityVerificationReportType.fromJson(map['type']),
verificationSession: map['verification_session'] == null
? null
: (map['verification_session'] as String),
);
}