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