UserData constructor

UserData({
  1. required String gender,
  2. required double weight,
  3. required double height,
  4. required String timeFormat,
  5. required DateTime birthDate,
  6. required String measurementSystem,
  7. int? activityLevel,
  8. required String handedness,
  9. required PowerFormat powerFormat,
  10. required PowerFormat heartRateFormat,
  11. required FirstDayOfWeek firstDayOfWeek,
  12. double? vo2MaxRunning,
  13. double? vo2MaxCycling,
  14. double? lactateThresholdSpeed,
  15. double? lactateThresholdHeartRate,
  16. int? diveNumber,
  17. required String intensityMinutesCalcMethod,
  18. required int moderateIntensityMinutesHrZone,
  19. required int vigorousIntensityMinutesHrZone,
  20. required String hydrationMeasurementUnit,
  21. required List<Map<String, dynamic>> hydrationContainers,
  22. required bool hydrationAutoGoalEnabled,
  23. double? firstbeatMaxStressScore,
  24. int? firstbeatCyclingLtTimestamp,
  25. int? firstbeatRunningLtTimestamp,
  26. bool? thresholdHeartRateAutoDetected,
  27. bool? ftpAutoDetected,
  28. String? trainingStatusPausedDate,
  29. WeatherLocation? weatherLocation,
  30. String? golfDistanceUnit,
  31. String? golfElevationUnit,
  32. String? golfSpeedUnit,
  33. double? externalBottomTime,
})

Implementation

UserData({
  required this.gender,
  required this.weight,
  required this.height,
  required this.timeFormat,
  required this.birthDate,
  required this.measurementSystem,
  this.activityLevel,
  required this.handedness,
  required this.powerFormat,
  required this.heartRateFormat,
  required this.firstDayOfWeek,
  this.vo2MaxRunning,
  this.vo2MaxCycling,
  this.lactateThresholdSpeed,
  this.lactateThresholdHeartRate,
  this.diveNumber,
  required this.intensityMinutesCalcMethod,
  required this.moderateIntensityMinutesHrZone,
  required this.vigorousIntensityMinutesHrZone,
  required this.hydrationMeasurementUnit,
  required this.hydrationContainers,
  required this.hydrationAutoGoalEnabled,
  this.firstbeatMaxStressScore,
  this.firstbeatCyclingLtTimestamp,
  this.firstbeatRunningLtTimestamp,
  this.thresholdHeartRateAutoDetected,
  this.ftpAutoDetected,
  this.trainingStatusPausedDate,
  this.weatherLocation,
  this.golfDistanceUnit,
  this.golfElevationUnit,
  this.golfSpeedUnit,
  this.externalBottomTime,
});