toValue method

String toValue()

Implementation

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