toSortBy method

SortBy toSortBy()

Implementation

SortBy toSortBy() {
  switch (this) {
    case 'Name':
      return SortBy.name;
    case 'CreationTime':
      return SortBy.creationTime;
    case 'Status':
      return SortBy.status;
  }
  throw Exception('$this is not known in enum SortBy');
}