toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DeploymentEventType.percentageUpdated:
      return 'PERCENTAGE_UPDATED';
    case DeploymentEventType.rollbackStarted:
      return 'ROLLBACK_STARTED';
    case DeploymentEventType.rollbackCompleted:
      return 'ROLLBACK_COMPLETED';
    case DeploymentEventType.bakeTimeStarted:
      return 'BAKE_TIME_STARTED';
    case DeploymentEventType.deploymentStarted:
      return 'DEPLOYMENT_STARTED';
    case DeploymentEventType.deploymentCompleted:
      return 'DEPLOYMENT_COMPLETED';
  }
}