fromJson static method

MatchFacesRequest? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  if (jsonObject["images"] != null)
    for (var item in jsonObject["images"])
      result.images.add(MatchFacesImage.fromJson(item));
  result.customMetadata = jsonObject["customMetadata"];
  result.tag = jsonObject["tag"];
  result.outputImageParams =
      OutputImageParams.fromJson(jsonObject["outputImageParams"]);

  return result;
}