toValue method
Implementation
String toValue() {
switch (this) {
case TrainingJobStatus.inProgress:
return 'InProgress';
case TrainingJobStatus.completed:
return 'Completed';
case TrainingJobStatus.failed:
return 'Failed';
case TrainingJobStatus.stopping:
return 'Stopping';
case TrainingJobStatus.stopped:
return 'Stopped';
}
}