workoutSourceFromJson function
Implementation
enums.WorkoutSource workoutSourceFromJson(
  Object? workoutSource, [
  enums.WorkoutSource? defaultValue,
]) {
  return enums.WorkoutSource.values
          .firstWhereOrNull((e) => e.value == workoutSource) ??
      defaultValue ??
      enums.WorkoutSource.swaggerGeneratedUnknown;
}