# toJson method

Map<String, dynamic> toJson()

## Implementation

    Map<String, dynamic> toJson() => <String, dynamic>{
          "cameraModule": cameraModule.name,
          "defaultZoomFactor": defaultZoomFactor,
          "flashEnabled": flashEnabled,
          "minFocusDistanceLock": minFocusDistanceLock,
          "touchToFocusEnabled": touchToFocusEnabled,
          "pinchToZoomEnabled": pinchToZoomEnabled,
          "cameraPreviewMode": cameraPreviewMode.name,
          "captureQualityPrioritization": captureQualityPrioritization.name,
          "acceptedAngleScore": acceptedAngleScore,
          "acceptedSizeScore": acceptedSizeScore,
          "autoSnappingSensitivity": autoSnappingSensitivity,
          "autoSnappingDelay": autoSnappingDelay,
          "acceptedBrightnessThreshold": acceptedBrightnessThreshold,
          "autoSnappingEnabled": autoSnappingEnabled,
          "requiredAspectRatios":
              requiredAspectRatios.map((it) => it.toJson()).toList(),
          "ignoreBadAspectRatio": ignoreBadAspectRatio,
          "captureWithHardwareButtonsEnabled": captureWithHardwareButtonsEnabled,
        };