toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> result = {};

  if (dpiThreshold != null) result["dpiThreshold"] = dpiThreshold;
  if (angleThreshold != null) result["angleThreshold"] = angleThreshold;
  if (documentPositionIndent != null)
    result["documentPositionIndent"] = documentPositionIndent;
  if (focusCheck != null) result["focusCheck"] = focusCheck;
  if (glaresCheck != null) result["glaresCheck"] = glaresCheck;
  if (colornessCheck != null) result["colornessCheck"] = colornessCheck;
  if (moireCheck != null) result["moireCheck"] = moireCheck;
  if (expectedPass != null) result["expectedPass"] = expectedPass;
  if (glaresCheckParams != null)
    result["glaresCheckParams"] = glaresCheckParams!.toJson();

  return result;
}