# toJson method

Map<String, dynamic> toJson()

## Implementation

    Map<String, dynamic> toJson() => <String, dynamic>{
          "cameraModule": cameraModule.name,
          "zoomSteps": zoomSteps.map((it) => it).toList(),
          "defaultZoomFactor": defaultZoomFactor,
          "flashEnabled": flashEnabled,
          "minFocusDistanceLock": minFocusDistanceLock,
          "touchToFocusEnabled": touchToFocusEnabled,
          "pinchToZoomEnabled": pinchToZoomEnabled,
          "orientationLockMode": orientationLockMode.name,
          "cameraPreviewMode": cameraPreviewMode.name,
        };