toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case QueryResultType.document:
      return 'DOCUMENT';
    case QueryResultType.questionAnswer:
      return 'QUESTION_ANSWER';
    case QueryResultType.answer:
      return 'ANSWER';
  }
}