toModelStatus method
Implementation
ModelStatus toModelStatus() {
switch (this) {
case 'SUBMITTED':
return ModelStatus.submitted;
case 'TRAINING':
return ModelStatus.training;
case 'DELETING':
return ModelStatus.deleting;
case 'STOP_REQUESTED':
return ModelStatus.stopRequested;
case 'STOPPED':
return ModelStatus.stopped;
case 'IN_ERROR':
return ModelStatus.inError;
case 'TRAINED':
return ModelStatus.trained;
}
throw Exception('$this is not known in enum ModelStatus');
}