toNotificationType method

NotificationType toNotificationType()

Implementation

NotificationType toNotificationType() {
  switch (this) {
    case 'Command':
      return NotificationType.command;
    case 'Invocation':
      return NotificationType.invocation;
  }
  throw Exception('$this is not known in enum NotificationType');
}