toOrderBy method
Implementation
OrderBy toOrderBy() {
switch (this) {
case 'TimestampAscending':
return OrderBy.timestampAscending;
case 'TimestampDescending':
return OrderBy.timestampDescending;
}
throw Exception('$this is not known in enum OrderBy');
}