toDeploymentStatus method
Implementation
DeploymentStatus toDeploymentStatus() {
switch (this) {
case 'Created':
return DeploymentStatus.created;
case 'Queued':
return DeploymentStatus.queued;
case 'InProgress':
return DeploymentStatus.inProgress;
case 'Baking':
return DeploymentStatus.baking;
case 'Succeeded':
return DeploymentStatus.succeeded;
case 'Failed':
return DeploymentStatus.failed;
case 'Stopped':
return DeploymentStatus.stopped;
case 'Ready':
return DeploymentStatus.ready;
}
throw Exception('$this is not known in enum DeploymentStatus');
}