toOrganizationRuleStatus method

OrganizationRuleStatus toOrganizationRuleStatus()

Implementation

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