SearchFacesByImageResponse.fromJson constructor
SearchFacesByImageResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SearchFacesByImageResponse.fromJson(Map<String, dynamic> json) {
return SearchFacesByImageResponse(
faceMatches: (json['FaceMatches'] as List?)
?.whereNotNull()
.map((e) => FaceMatch.fromJson(e as Map<String, dynamic>))
.toList(),
faceModelVersion: json['FaceModelVersion'] as String?,
searchedFaceBoundingBox: json['SearchedFaceBoundingBox'] != null
? BoundingBox.fromJson(
json['SearchedFaceBoundingBox'] as Map<String, dynamic>)
: null,
searchedFaceConfidence: json['SearchedFaceConfidence'] as double?,
);
}