# 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["zoomSteps"] = zoomSteps.map((it) => it).toList();
      obj["defaultZoomFactor"] = defaultZoomFactor;
      obj["flashEnabled"] = flashEnabled;
      obj["minFocusDistanceLock"] = minFocusDistanceLock;
      obj["touchToFocusEnabled"] = touchToFocusEnabled;
      obj["pinchToZoomEnabled"] = pinchToZoomEnabled;
      obj["orientationLockMode"] = orientationLockMode.name;
      obj["cameraPreviewMode"] = cameraPreviewMode.name;
      obj["hardwareButtonsEnabled"] = hardwareButtonsEnabled;
      obj["fpsLimit"] = fpsLimit;
      return obj;
    }