fromJson static method

SearchPersonRequest? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.outputImageParams = OutputImageParams.fromJson(jsonObject["outputImageParams"]);
  if (jsonObject["groupIdsForSearch"] != null)
    for (var item in jsonObject["groupIdsForSearch"])
      result.groupIdsForSearch.add(item);
  result.threshold = jsonObject["threshold"] == null ? null : jsonObject["threshold"].toDouble();
  result.limit = jsonObject["limit"];
  result.imageUpload = ImageUpload.fromJson(jsonObject["imageUpload"]);
  result.detectAll = jsonObject["detectAll"];

  return result;
}