toTrainingJobEarlyStoppingType method

TrainingJobEarlyStoppingType toTrainingJobEarlyStoppingType()

Implementation

TrainingJobEarlyStoppingType toTrainingJobEarlyStoppingType() {
  switch (this) {
    case 'Off':
      return TrainingJobEarlyStoppingType.off;
    case 'Auto':
      return TrainingJobEarlyStoppingType.auto;
  }
  throw Exception('$this is not known in enum TrainingJobEarlyStoppingType');
}