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