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