toJson method
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,
};