toTrainingJobSortByOptions method

TrainingJobSortByOptions toTrainingJobSortByOptions()

Implementation

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