VerificationResultData.fromJson constructor
VerificationResultData.fromJson(
- Map<String, dynamic> json
)
Implementation
factory VerificationResultData.fromJson(Map<String, dynamic> json) => VerificationResultData(
id: json['id'] ?? '',
data: VerificationDetails.fromJson(json['data'] is Map<String, dynamic> ? json['data'] : {}),
metaData: MetaDataModel.fromJson(json['metadata'] is Map<String, dynamic> ? json['metadata'] : {}),
artifacts: ArtifactsModel.fromJson(json['artifacts'] is Map<String, dynamic> ? json['artifacts'] : {}),
annotation: AnnotationModel.fromJson(json['annotations'] is Map<String, dynamic> ? json['annotations'] : {}),
type: VerificationTypeModel.fromJson(json['type'] is Map<String, dynamic> ? json['type'] : {}),
status: VerificationStatusModel.fromJson(json['status'] is Map<String, dynamic> ? json['status'] : {}),
statusNotes: json['status_notes'] != null ? List<String>.from(json['status_notes'] as List) : null,
);