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');
}