fromJson static method

FaceApiParams? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

static FaceApiParams? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  return FaceApiParams(
      url: jsonObject["url"],
      mode: jsonObject["mode"],
      searchParams: FaceApiSearchParams.fromJson(jsonObject["searchParams"]),
      threshold: jsonObject["threshold"],
      serviceTimeout: jsonObject["serviceTimeout"],
      proxy: jsonObject["proxy"],
      proxyPassword: jsonObject["proxyPassword"],
      proxyType: jsonObject["proxyType"]);
}