toQualityFilter method

QualityFilter toQualityFilter()

Implementation

QualityFilter toQualityFilter() {
  switch (this) {
    case 'NONE':
      return QualityFilter.none;
    case 'AUTO':
      return QualityFilter.auto;
    case 'LOW':
      return QualityFilter.low;
    case 'MEDIUM':
      return QualityFilter.medium;
    case 'HIGH':
      return QualityFilter.high;
  }
  throw Exception('$this is not known in enum QualityFilter');
}