toGrouping method

Grouping toGrouping()

Implementation

Grouping toGrouping() {
  switch (this) {
    case 'QUEUE':
      return Grouping.queue;
    case 'CHANNEL':
      return Grouping.channel;
  }
  throw Exception('$this is not known in enum Grouping');
}