toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case OrderEnum.ascending:
      return 'ascending';
    case OrderEnum.descending:
      return 'descending';
  }
}