fromValue static method

HipSwingExerciseName fromValue(
  1. int value
)

Implementation

static HipSwingExerciseName fromValue(int value) {
  switch (value) {
    case 0:
      return HipSwingExerciseName.singleArmKettlebellSwing;
    case 1:
      return HipSwingExerciseName.singleArmDumbbellSwing;
    case 2:
      return HipSwingExerciseName.stepOutSwing;
    default:
      throw ArgumentError.value(value);
  }
}