toJson method
override
Implementation
@override
Map<String, dynamic> toJson() {
return {
"detectorType": detectorType.name,
if (flashEnabled != null) "flashEnabled": flashEnabled,
"detectionEnabled": detectionEnabled,
if (cameraZoomFactor != null) "cameraZoomFactor": cameraZoomFactor,
if (contourConfiguration != null)
"contourConfiguration": contourConfiguration!.toJson(),
"scannerConfiguration": scannerConfiguration.toJson(),
"scannerResolution": cameraLiveScannerResolution.name,
};
}