toOrderBy method

OrderBy toOrderBy()

Implementation

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