toSystemInstanceDeploymentStatus method
Implementation
SystemInstanceDeploymentStatus toSystemInstanceDeploymentStatus() {
switch (this) {
case 'NOT_DEPLOYED':
return SystemInstanceDeploymentStatus.notDeployed;
case 'BOOTSTRAP':
return SystemInstanceDeploymentStatus.bootstrap;
case 'DEPLOY_IN_PROGRESS':
return SystemInstanceDeploymentStatus.deployInProgress;
case 'DEPLOYED_IN_TARGET':
return SystemInstanceDeploymentStatus.deployedInTarget;
case 'UNDEPLOY_IN_PROGRESS':
return SystemInstanceDeploymentStatus.undeployInProgress;
case 'FAILED':
return SystemInstanceDeploymentStatus.failed;
case 'PENDING_DELETE':
return SystemInstanceDeploymentStatus.pendingDelete;
case 'DELETED_IN_TARGET':
return SystemInstanceDeploymentStatus.deletedInTarget;
}
throw Exception(
'$this is not known in enum SystemInstanceDeploymentStatus');
}