toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case AssessmentRunState.created:
      return 'CREATED';
    case AssessmentRunState.startDataCollectionPending:
      return 'START_DATA_COLLECTION_PENDING';
    case AssessmentRunState.startDataCollectionInProgress:
      return 'START_DATA_COLLECTION_IN_PROGRESS';
    case AssessmentRunState.collectingData:
      return 'COLLECTING_DATA';
    case AssessmentRunState.stopDataCollectionPending:
      return 'STOP_DATA_COLLECTION_PENDING';
    case AssessmentRunState.dataCollected:
      return 'DATA_COLLECTED';
    case AssessmentRunState.startEvaluatingRulesPending:
      return 'START_EVALUATING_RULES_PENDING';
    case AssessmentRunState.evaluatingRules:
      return 'EVALUATING_RULES';
    case AssessmentRunState.failed:
      return 'FAILED';
    case AssessmentRunState.error:
      return 'ERROR';
    case AssessmentRunState.completed:
      return 'COMPLETED';
    case AssessmentRunState.completedWithErrors:
      return 'COMPLETED_WITH_ERRORS';
    case AssessmentRunState.canceled:
      return 'CANCELED';
  }
}