toFeedback method

Feedback toFeedback()

Implementation

Feedback toFeedback() {
  switch (this) {
    case 'USEFUL':
      return Feedback.useful;
    case 'NOT_USEFUL':
      return Feedback.notUseful;
  }
  throw Exception('$this is not known in enum Feedback');
}