toCandidateSortBy method

CandidateSortBy toCandidateSortBy()

Implementation

CandidateSortBy toCandidateSortBy() {
  switch (this) {
    case 'CreationTime':
      return CandidateSortBy.creationTime;
    case 'Status':
      return CandidateSortBy.status;
    case 'FinalObjectiveMetricValue':
      return CandidateSortBy.finalObjectiveMetricValue;
  }
  throw Exception('$this is not known in enum CandidateSortBy');
}