fromJson static method

MatchFacesDetection? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.image = MatchFacesImage.fromJson(jsonObject["image"]);
  result.imageIndex = jsonObject["imageIndex"];
  if (jsonObject["faces"] != null)
    for (var item in jsonObject["faces"])
      result.faces.add(MatchFacesDetectionFace.fromJson(item));
  result.exception = MatchFacesException.fromJson(jsonObject["exception"]);

  return result;
}