toCandidateStatus method

CandidateStatus toCandidateStatus()

Implementation

CandidateStatus toCandidateStatus() {
  switch (this) {
    case 'Completed':
      return CandidateStatus.completed;
    case 'InProgress':
      return CandidateStatus.inProgress;
    case 'Failed':
      return CandidateStatus.failed;
    case 'Stopped':
      return CandidateStatus.stopped;
    case 'Stopping':
      return CandidateStatus.stopping;
  }
  throw Exception('$this is not known in enum CandidateStatus');
}