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