toValue method

String toValue()

Implementation

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