toValue method
Implementation
String toValue() {
  switch (this) {
    case SortOrder.asc:
      return 'asc';
    case SortOrder.desc:
      return 'desc';
  }
}String toValue() {
  switch (this) {
    case SortOrder.asc:
      return 'asc';
    case SortOrder.desc:
      return 'desc';
  }
}