toTrainingMode method
Implementation
TrainingMode toTrainingMode() {
switch (this) {
case 'FULL':
return TrainingMode.full;
case 'UPDATE':
return TrainingMode.update;
}
throw Exception('$this is not known in enum TrainingMode');
}