toValue method

String toValue()

Implementation

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