toDeploymentStatus method
Implementation
DeploymentStatus toDeploymentStatus() {
switch (this) {
case 'Pending':
return DeploymentStatus.pending;
case 'Preparing':
return DeploymentStatus.preparing;
case 'InProgress':
return DeploymentStatus.inProgress;
case 'Failed':
return DeploymentStatus.failed;
case 'Succeeded':
return DeploymentStatus.succeeded;
case 'Canceled':
return DeploymentStatus.canceled;
}
throw Exception('$this is not known in enum DeploymentStatus');
}