toMap method
Implementation
@override
Map<String, dynamic> toMap() {
Map<String, dynamic> json;
json = {
'preferredResolution': preferredResolution.toString(),
'zoomFactor': zoomFactor,
'focusRange': focusRange.toString(),
'focus': {
'range': focusRange.toString(),
'focusGestureStrategy': focusGestureStrategy.toString(),
'shouldPreferSmoothAutoFocus': shouldPreferSmoothAutoFocus
},
'zoomGestureZoomFactor': zoomGestureZoomFactor
};
_cameraFocusHiddenProperties.forEach((key, value) {
json['focus'][key] = value;
});
if (_cameraSettingsProperties.isNotEmpty) {
json.addAll(_cameraSettingsProperties);
}
return json;
}