toWorkoutAuthValue method

WorkoutAuthentication toWorkoutAuthValue()

Implementation

WorkoutAuthentication toWorkoutAuthValue() {
  switch (this) {
    case "notDetermined":
      return WorkoutAuthentication.notDetermined;
    case "restricted":
      return WorkoutAuthentication.restricted;
    case "denied":
      return WorkoutAuthentication.denied;
    case "authorized":
      return WorkoutAuthentication.authorized;
    default:
      return WorkoutAuthentication.denied;
  }
}