toSortValue method
Implementation
SortValue toSortValue() {
switch (this) {
case 'ASC':
return SortValue.asc;
case 'DESC':
return SortValue.desc;
}
throw Exception('$this is not known in enum SortValue');
}
SortValue toSortValue() {
switch (this) {
case 'ASC':
return SortValue.asc;
case 'DESC':
return SortValue.desc;
}
throw Exception('$this is not known in enum SortValue');
}