toOrganizationResourceStatus method

OrganizationResourceStatus toOrganizationResourceStatus()

Implementation

OrganizationResourceStatus toOrganizationResourceStatus() {
  switch (this) {
    case 'CREATE_SUCCESSFUL':
      return OrganizationResourceStatus.createSuccessful;
    case 'CREATE_IN_PROGRESS':
      return OrganizationResourceStatus.createInProgress;
    case 'CREATE_FAILED':
      return OrganizationResourceStatus.createFailed;
    case 'DELETE_SUCCESSFUL':
      return OrganizationResourceStatus.deleteSuccessful;
    case 'DELETE_FAILED':
      return OrganizationResourceStatus.deleteFailed;
    case 'DELETE_IN_PROGRESS':
      return OrganizationResourceStatus.deleteInProgress;
    case 'UPDATE_SUCCESSFUL':
      return OrganizationResourceStatus.updateSuccessful;
    case 'UPDATE_IN_PROGRESS':
      return OrganizationResourceStatus.updateInProgress;
    case 'UPDATE_FAILED':
      return OrganizationResourceStatus.updateFailed;
  }
  throw Exception('$this is not known in enum OrganizationResourceStatus');
}