toTriggerEventType method

TriggerEventType toTriggerEventType()

Implementation

TriggerEventType toTriggerEventType() {
  switch (this) {
    case 'DeploymentStart':
      return TriggerEventType.deploymentStart;
    case 'DeploymentSuccess':
      return TriggerEventType.deploymentSuccess;
    case 'DeploymentFailure':
      return TriggerEventType.deploymentFailure;
    case 'DeploymentStop':
      return TriggerEventType.deploymentStop;
    case 'DeploymentRollback':
      return TriggerEventType.deploymentRollback;
    case 'DeploymentReady':
      return TriggerEventType.deploymentReady;
    case 'InstanceStart':
      return TriggerEventType.instanceStart;
    case 'InstanceSuccess':
      return TriggerEventType.instanceSuccess;
    case 'InstanceFailure':
      return TriggerEventType.instanceFailure;
    case 'InstanceReady':
      return TriggerEventType.instanceReady;
  }
  throw Exception('$this is not known in enum TriggerEventType');
}