toMode method

Mode toMode()

Implementation

Mode toMode() {
  switch (this) {
    case 'event':
      return Mode.event;
  }
  throw Exception('$this is not known in enum Mode');
}