toQueryResultType method

QueryResultType toQueryResultType()

Implementation

QueryResultType toQueryResultType() {
  switch (this) {
    case 'DOCUMENT':
      return QueryResultType.document;
    case 'QUESTION_ANSWER':
      return QueryResultType.questionAnswer;
    case 'ANSWER':
      return QueryResultType.answer;
  }
  throw Exception('$this is not known in enum QueryResultType');
}