SearchFacesResponse.fromJson constructor

SearchFacesResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SearchFacesResponse.fromJson(Map<String, dynamic> json) {
  return SearchFacesResponse(
    faceMatches: (json['FaceMatches'] as List?)
        ?.whereNotNull()
        .map((e) => FaceMatch.fromJson(e as Map<String, dynamic>))
        .toList(),
    faceModelVersion: json['FaceModelVersion'] as String?,
    searchedFaceId: json['SearchedFaceId'] as String?,
  );
}