toSecondaryStatus method
Implementation
SecondaryStatus toSecondaryStatus() {
switch (this) {
case 'Starting':
return SecondaryStatus.starting;
case 'LaunchingMLInstances':
return SecondaryStatus.launchingMLInstances;
case 'PreparingTrainingStack':
return SecondaryStatus.preparingTrainingStack;
case 'Downloading':
return SecondaryStatus.downloading;
case 'DownloadingTrainingImage':
return SecondaryStatus.downloadingTrainingImage;
case 'Training':
return SecondaryStatus.training;
case 'Uploading':
return SecondaryStatus.uploading;
case 'Stopping':
return SecondaryStatus.stopping;
case 'Stopped':
return SecondaryStatus.stopped;
case 'MaxRuntimeExceeded':
return SecondaryStatus.maxRuntimeExceeded;
case 'Completed':
return SecondaryStatus.completed;
case 'Failed':
return SecondaryStatus.failed;
case 'Interrupted':
return SecondaryStatus.interrupted;
case 'MaxWaitTimeExceeded':
return SecondaryStatus.maxWaitTimeExceeded;
case 'Updating':
return SecondaryStatus.updating;
}
throw Exception('$this is not known in enum SecondaryStatus');
}