toSortValue method

SortValue toSortValue()

Implementation

SortValue toSortValue() {
  switch (this) {
    case 'ASC':
      return SortValue.asc;
    case 'DESC':
      return SortValue.desc;
  }
  throw Exception('$this is not known in enum SortValue');
}