toMap method
toMap is the method to convert the class to map.
Implementation
Map<String, dynamic> toMap() {
return {
'name': name,
'resolution': resolution,
'videoResolution': videoResolution,
'orientation': orientation,
'focalLength': focalLength,
'focusModes': focusModes,
'videoSnapshotSupported': videoSnapshotSupported,
'videoStabilizationSupported': videoStabilizationSupported,
'zoomSupported': zoomSupported,
'smoothZoomSupported': smoothZoomSupported,
'autoExposureLockingSupported': autoExposureLockingSupported,
'autoWhiteBalanceLockingSupported': autoWhiteBalanceLockingSupported,
'flashSupported': flashSupported,
};
}