fromJson static method

  1. @visibleForTesting
ComparedFace? fromJson(
  1. dynamic jsonObject
)

Implementation

@visibleForTesting
static ComparedFace? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = ComparedFace._privateConstructor();

  result._imageIndex = jsonObject["imageIndex"];
  result._image = MatchFacesImage.fromJson(jsonObject["image"])!;
  result._faceIndex = jsonObject["faceIndex"];
  result._face = MatchFacesDetectionFace.fromJson(jsonObject["face"]);

  return result;
}