# 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["cameraModule"] = cameraModule.name;
      obj["defaultZoomFactor"] = defaultZoomFactor;
      obj["autoCropOnManualSnap"] = autoCropOnManualSnap;
      obj["flashEnabled"] = flashEnabled;
      obj["minFocusDistanceLock"] = minFocusDistanceLock;
      obj["touchToFocusEnabled"] = touchToFocusEnabled;
      obj["pinchToZoomEnabled"] = pinchToZoomEnabled;
      obj["cameraPreviewMode"] = cameraPreviewMode.name;
      obj["captureQualityPrioritization"] = captureQualityPrioritization.name;
      obj["autoSnappingSensitivity"] = autoSnappingSensitivity;
      obj["autoSnappingDelay"] = autoSnappingDelay;
      obj["autoSnappingEnabled"] = autoSnappingEnabled;
      obj["captureWithHardwareButtonsEnabled"] =
          captureWithHardwareButtonsEnabled;
      return obj;
    }