toReaction method

Reaction toReaction()

Implementation

Reaction toReaction() {
  switch (this) {
    case 'ThumbsUp':
      return Reaction.thumbsUp;
    case 'ThumbsDown':
      return Reaction.thumbsDown;
  }
  throw Exception('$this is not known in enum Reaction');
}