# toJson method

Map<String, dynamic> toJson({

1. ToJsonConfiguration? config,

})

## Implementation

    Map<String, dynamic> toJson({ToJsonConfiguration? config}) {
      config = config ?? ToJsonConfiguration();
      Map<String, dynamic> obj = <String, dynamic>{};
      obj["scanningSuccessful"] = scanningSuccessful;
      obj["patientInfoBox"] = patientInfoBox.toJson(config: config);
      obj["checkBoxes"] =
          checkBoxes.map((it) => it.toJson(config: config)).toList();
      obj["dates"] = dates.map((it) => it.toJson(config: config)).toList();
      obj["formType"] = formType.name;
      obj["clockwiseRotations"] = clockwiseRotations;
      if (config.serializeImages) {
        obj["croppedImage"] =
            (croppedImage != null ? croppedImage!.toJson() : null);
      }
      obj["scaleX"] = scaleX;
      obj["scaleY"] = scaleY;
      obj["documentDetectionResult"] = (documentDetectionResult != null
          ? documentDetectionResult!.toJson(config: config)
          : null);
      return obj;
    }