toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "dpiThreshold": dpiThreshold,
      "angleThreshold": angleThreshold,
      "documentPositionIndent": documentPositionIndent,
      "focusCheck": focusCheck,
      "glaresCheck": glaresCheck,
      "colornessCheck": colornessCheck,
      "screenCapture": screenCapture,
      "expectedPass": expectedPass?.map((e) => e.value).toList(),
      "glaresCheckParams": glaresCheckParams?.toJson(),
      "brightnessThreshold": brightnessThreshold,
    }.clearNulls();