toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case TriggerEventType.deploymentStart:
      return 'DeploymentStart';
    case TriggerEventType.deploymentSuccess:
      return 'DeploymentSuccess';
    case TriggerEventType.deploymentFailure:
      return 'DeploymentFailure';
    case TriggerEventType.deploymentStop:
      return 'DeploymentStop';
    case TriggerEventType.deploymentRollback:
      return 'DeploymentRollback';
    case TriggerEventType.deploymentReady:
      return 'DeploymentReady';
    case TriggerEventType.instanceStart:
      return 'InstanceStart';
    case TriggerEventType.instanceSuccess:
      return 'InstanceSuccess';
    case TriggerEventType.instanceFailure:
      return 'InstanceFailure';
    case TriggerEventType.instanceReady:
      return 'InstanceReady';
  }
}