IndexFacesResponse.fromJson constructor
IndexFacesResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory IndexFacesResponse.fromJson(Map<String, dynamic> json) {
return IndexFacesResponse(
faceModelVersion: json['FaceModelVersion'] as String?,
faceRecords: (json['FaceRecords'] as List?)
?.whereNotNull()
.map((e) => FaceRecord.fromJson(e as Map<String, dynamic>))
.toList(),
orientationCorrection:
(json['OrientationCorrection'] as String?)?.toOrientationCorrection(),
unindexedFaces: (json['UnindexedFaces'] as List?)
?.whereNotNull()
.map((e) => UnindexedFace.fromJson(e as Map<String, dynamic>))
.toList(),
);
}