deserializeExposureMode function
Returns the exposure mode for a given String.
Implementation
ExposureMode deserializeExposureMode(String str) {
switch (str) {
case 'locked':
return ExposureMode.locked;
case 'auto':
return ExposureMode.auto;
default:
throw ArgumentError('"$str" is not a valid ExposureMode value');
}
}