CompareFacesMatch.fromJson constructor

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

Implementation

factory CompareFacesMatch.fromJson(Map<String, dynamic> json) {
  return CompareFacesMatch(
    face: json['Face'] != null
        ? ComparedFace.fromJson(json['Face'] as Map<String, dynamic>)
        : null,
    similarity: json['Similarity'] as double?,
  );
}