toDeploymentEventType method
Implementation
DeploymentEventType toDeploymentEventType() {
switch (this) {
case 'PERCENTAGE_UPDATED':
return DeploymentEventType.percentageUpdated;
case 'ROLLBACK_STARTED':
return DeploymentEventType.rollbackStarted;
case 'ROLLBACK_COMPLETED':
return DeploymentEventType.rollbackCompleted;
case 'BAKE_TIME_STARTED':
return DeploymentEventType.bakeTimeStarted;
case 'DEPLOYMENT_STARTED':
return DeploymentEventType.deploymentStarted;
case 'DEPLOYMENT_COMPLETED':
return DeploymentEventType.deploymentCompleted;
}
throw Exception('$this is not known in enum DeploymentEventType');
}