toJson method
Implementation
Map<String, dynamic> toJson({ToJsonConfiguration? config}) {
config = config ?? ToJsonConfiguration();
Map<String, dynamic> obj = <String, dynamic>{};
obj["version"] = version;
obj["screen"] = screen;
obj["localization"] = localization.toJson(config: config);
obj["palette"] = palette.toJson(config: config);
obj["backgroundColor"] = backgroundColor.toString();
obj["cameraConfiguration"] = cameraConfiguration.toJson(config: config);
obj["cameraPermission"] = cameraPermission.toJson(config: config);
obj["topUserGuidance"] = topUserGuidance.toJson(config: config);
obj["finderViewUserGuidance"] =
finderViewUserGuidance.toJson(config: config);
obj["topBar"] = topBar.toJson(config: config);
obj["topBarOpenIntroScreenButton"] =
topBarOpenIntroScreenButton.toJson(config: config);
obj["introScreen"] = introScreen.toJson(config: config);
obj["actionBar"] = actionBar.toJson(config: config);
obj["viewFinder"] = viewFinder.toJson(config: config);
obj["scannerConfiguration"] = scannerConfiguration.toJson(config: config);
obj["shouldShowWordBoxes"] = shouldShowWordBoxes;
obj["wordBoxesFillColor"] = wordBoxesFillColor.toString();
obj["wordBoxesLineColor"] = wordBoxesLineColor.toString();
obj["confirmationAlertDialogEnabled"] = confirmationAlertDialogEnabled;
obj["confirmationAlertDialog"] =
confirmationAlertDialog.toJson(config: config);
obj["successOverlay"] = successOverlay.toJson(config: config);
obj["sound"] = sound.toJson(config: config);
obj["vibration"] = vibration.toJson(config: config);
obj["keepScreenOn"] = keepScreenOn;
return obj;
}