fromJson static method

ImageQuality? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  result._featureType = jsonObject["featureType"];
  result._result = CheckResult.getByValue(jsonObject["result"])!;
  result._type = ImageQualityCheckType.getByValue(jsonObject["type"])!;
  for (var item in jsonObject["boundRects"]) {
    result._boundRects.addSafe(Rect.fromJson(item));
  }

  return result;
}