asMap method
Implementation
Map asMap() {
Map<String, dynamic> map = {};
if (compressQuality != null &&
(compressQuality! < 80 || compressQuality! > 100)) {
throw ArgumentError(
"compressQuality must be between 80 and 100", "compressQuality");
}
map["sensorSettings"] = sensorSettings?.asMap();
map["captureStages"] = captureStages?.map((e) => e.asMap()).toList();
map["compressQuality"] = compressQuality;
map["cameraResolution"] = cameraResolution?.stringValue;
map["securitySettings"] = securitySettings?.asMap();
map["customStyleResName"] = customStyle;
map["feedbackColors"] = feedbackColors?.asMap();
return map;
}