toSortKey method

SortKey toSortKey()

Implementation

SortKey toSortKey() {
  switch (this) {
    case 'DESCENDING':
      return SortKey.descending;
    case 'ASCENDING':
      return SortKey.ascending;
  }
  throw Exception('$this is not known in enum SortKey');
}