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