toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case CandidateStatus.completed:
      return 'Completed';
    case CandidateStatus.inProgress:
      return 'InProgress';
    case CandidateStatus.failed:
      return 'Failed';
    case CandidateStatus.stopped:
      return 'Stopped';
    case CandidateStatus.stopping:
      return 'Stopping';
  }
}