asMap method
Implementation
Map asMap() {
Map<String, dynamic> map = {};
if (captureCompressionQuality != null &&
(captureCompressionQuality! < 0.8 ||
captureCompressionQuality! > 1.0)) {
throw ArgumentError(
"capture compression quality must be between 0.8 and 1.0",
"captureCompressionQuality");
}
map["sensorSettings"] = sensorSettings?.asMap();
map["compressionQuality"] = captureCompressionQuality;
map["enableManualCapture"] = enableManualCapture;
map["manualCaptureActivationDelay"] = manualCaptureActivationDelay;
map["enableMultilanguage"] = enableMultiLanguage;
map["cameraResolution"] = cameraResolution?.stringValue;
map["layoutCustomization"] = customLayout?.asMap();
return map;
}