toSortOrder method

SortOrder toSortOrder()

Implementation

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