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