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