parseFilterQuality function
Implementation
FilterQuality? parseFilterQuality(String? filterQualityString) {
if (filterQualityString == null) {
return null;
}
switch (filterQualityString) {
case 'none':
return FilterQuality.none;
case 'low':
return FilterQuality.low;
case 'medium':
return FilterQuality.medium;
case 'high':
return FilterQuality.high;
default:
return FilterQuality.low;
}
}