toSortDirectionType method

SortDirectionType toSortDirectionType()

Implementation

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