toResourceStatus method
Implementation
ResourceStatus toResourceStatus() {
switch (this) {
case 'CREATE_IN_PROGRESS':
return ResourceStatus.createInProgress;
case 'CREATE_FAILED':
return ResourceStatus.createFailed;
case 'CREATE_COMPLETE':
return ResourceStatus.createComplete;
case 'DELETE_IN_PROGRESS':
return ResourceStatus.deleteInProgress;
case 'DELETE_FAILED':
return ResourceStatus.deleteFailed;
case 'DELETE_COMPLETE':
return ResourceStatus.deleteComplete;
case 'DELETE_SKIPPED':
return ResourceStatus.deleteSkipped;
case 'UPDATE_IN_PROGRESS':
return ResourceStatus.updateInProgress;
case 'UPDATE_FAILED':
return ResourceStatus.updateFailed;
case 'UPDATE_COMPLETE':
return ResourceStatus.updateComplete;
case 'IMPORT_FAILED':
return ResourceStatus.importFailed;
case 'IMPORT_COMPLETE':
return ResourceStatus.importComplete;
case 'IMPORT_IN_PROGRESS':
return ResourceStatus.importInProgress;
case 'IMPORT_ROLLBACK_IN_PROGRESS':
return ResourceStatus.importRollbackInProgress;
case 'IMPORT_ROLLBACK_FAILED':
return ResourceStatus.importRollbackFailed;
case 'IMPORT_ROLLBACK_COMPLETE':
return ResourceStatus.importRollbackComplete;
}
throw Exception('$this is not known in enum ResourceStatus');
}