fromJson static method

FaceApiParams? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.url = jsonObject["url"];
  result.mode = jsonObject["mode"];
  result.searchParams = Search.fromJson(jsonObject["searchParams"]);
  result.threshold = jsonObject["threshold"];
  result.serviceTimeout = jsonObject["serviceTimeout"];
  result.proxy = jsonObject["proxy"];
  result.proxyPassword = jsonObject["proxyPassword"];
  result.proxyType = jsonObject["proxyType"];

  return result;
}