toValue method

String toValue()

Implementation

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