toValue method

String toValue()

Implementation

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