fromJson static method

ImageQA? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.dpiThreshold = jsonObject["dpiThreshold"];
  result.angleThreshold = jsonObject["angleThreshold"];
  result.focusCheck = jsonObject["focusCheck"];
  result.glaresCheck = jsonObject["glaresCheck"];
  result.colornessCheck = jsonObject["colornessCheck"];
  result.moireCheck = jsonObject["moireCheck"];
  if (jsonObject["expectedPass"] != null)
    for (var item in jsonObject["expectedPass"])
      result.expectedPass.add(item);
  result.glaresCheckParams = GlaresCheckParams.fromJson(jsonObject["glaresCheckParams"]);
  result.documentPositionIndent = jsonObject["documentPositionIndent"];

  return result;
}