toSort method

Sort toSort()

Implementation

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