fromJson static method

ImageQA fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

static ImageQA fromJson(jsonObject) {
  var result = ImageQA();
  result.testSetters = {};

  result.dpiThreshold = jsonObject["dpiThreshold"];
  result.angleThreshold = jsonObject["angleThreshold"];
  result.focusCheck = jsonObject["focusCheck"];
  result.glaresCheck = jsonObject["glaresCheck"];
  result.colornessCheck = jsonObject["colornessCheck"];
  result.screenCapture = jsonObject["screenCapture"];
  result.expectedPass =
      ImageQualityCheckType.fromIntList(jsonObject["expectedPass"]);
  result.glaresCheckParams =
      GlaresCheckParams.fromJson(jsonObject["glaresCheckParams"]);
  result.documentPositionIndent = jsonObject["documentPositionIndent"];
  result.brightnessThreshold = _toDouble(jsonObject["brightnessThreshold"]);

  return result;
}