toStackStatus method
Implementation
StackStatus toStackStatus() {
switch (this) {
case 'CREATE_IN_PROGRESS':
return StackStatus.createInProgress;
case 'CREATE_FAILED':
return StackStatus.createFailed;
case 'CREATE_COMPLETE':
return StackStatus.createComplete;
case 'ROLLBACK_IN_PROGRESS':
return StackStatus.rollbackInProgress;
case 'ROLLBACK_FAILED':
return StackStatus.rollbackFailed;
case 'ROLLBACK_COMPLETE':
return StackStatus.rollbackComplete;
case 'DELETE_IN_PROGRESS':
return StackStatus.deleteInProgress;
case 'DELETE_FAILED':
return StackStatus.deleteFailed;
case 'DELETE_COMPLETE':
return StackStatus.deleteComplete;
case 'UPDATE_IN_PROGRESS':
return StackStatus.updateInProgress;
case 'UPDATE_COMPLETE_CLEANUP_IN_PROGRESS':
return StackStatus.updateCompleteCleanupInProgress;
case 'UPDATE_COMPLETE':
return StackStatus.updateComplete;
case 'UPDATE_ROLLBACK_IN_PROGRESS':
return StackStatus.updateRollbackInProgress;
case 'UPDATE_ROLLBACK_FAILED':
return StackStatus.updateRollbackFailed;
case 'UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS':
return StackStatus.updateRollbackCompleteCleanupInProgress;
case 'UPDATE_ROLLBACK_COMPLETE':
return StackStatus.updateRollbackComplete;
case 'REVIEW_IN_PROGRESS':
return StackStatus.reviewInProgress;
case 'IMPORT_IN_PROGRESS':
return StackStatus.importInProgress;
case 'IMPORT_COMPLETE':
return StackStatus.importComplete;
case 'IMPORT_ROLLBACK_IN_PROGRESS':
return StackStatus.importRollbackInProgress;
case 'IMPORT_ROLLBACK_FAILED':
return StackStatus.importRollbackFailed;
case 'IMPORT_ROLLBACK_COMPLETE':
return StackStatus.importRollbackComplete;
}
throw Exception('$this is not known in enum StackStatus');
}