toMessageType method

MessageType toMessageType()

Implementation

MessageType toMessageType() {
  switch (this) {
    case 'ConfigurationItemChangeNotification':
      return MessageType.configurationItemChangeNotification;
    case 'ConfigurationSnapshotDeliveryCompleted':
      return MessageType.configurationSnapshotDeliveryCompleted;
    case 'ScheduledNotification':
      return MessageType.scheduledNotification;
    case 'OversizedConfigurationItemChangeNotification':
      return MessageType.oversizedConfigurationItemChangeNotification;
  }
  throw Exception('$this is not known in enum MessageType');
}