toSortOrder method

SortOrder toSortOrder()

Implementation

SortOrder toSortOrder() {
  switch (this) {
    case 'ascending':
      return SortOrder.ascending;
    case 'descending':
      return SortOrder.descending;
  }
  throw Exception('$this is not known in enum SortOrder');
}