fromValue static method
Implementation
static RunExerciseName fromValue(int value) {
switch (value) {
case 0:
return RunExerciseName.run;
case 1:
return RunExerciseName.walk;
case 2:
return RunExerciseName.jog;
case 3:
return RunExerciseName.sprint;
default:
throw ArgumentError.value(value);
}
}