fromJson static method

MatchFacesSimilarityThresholdSplit? fromJson(
  1. dynamic jsonObject
)

Implementation

static MatchFacesSimilarityThresholdSplit? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = new MatchFacesSimilarityThresholdSplit();

  if (jsonObject["matchedFaces"] != null)
    for (var item in jsonObject["matchedFaces"])
      result.matchedFaces.add(MatchFacesComparedFacesPair.fromJson(item));
  if (jsonObject["unmatchedFaces"] != null)
    for (var item in jsonObject["unmatchedFaces"])
      result.unmatchedFaces.add(MatchFacesComparedFacesPair.fromJson(item));

  return result;
}