# 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["status"] = status.name;
      obj["check"] = (check != null ? check!.toJson(config: config) : null);
      obj["documentDetectionResult"] = (documentDetectionResult != null
          ? documentDetectionResult!.toJson(config: config)
          : null);
      if (config.serializeImages) {
        obj["croppedImage"] =
            (croppedImage != null ? croppedImage!.toJson() : null);
      }
      return obj;
    }