Workout constructor

Workout({
  1. required String userId,
  2. required String userKey,
  3. required String id,
  4. String? title,
  5. int? timezoneOffset,
  6. double? averageHr,
  7. double? maxHr,
  8. double? distance,
  9. DateTime? timeStart,
  10. DateTime? timeEnd,
  11. double? calories,
  12. Sport? sport,
  13. List<Object> hrZones = const [],
  14. int? movingTime,
  15. double? totalElevationGain,
  16. double? elevHigh,
  17. double? elevLow,
  18. double? averageSpeed,
  19. double? maxSpeed,
  20. double? averageWatts,
  21. double? deviceWatts,
  22. double? maxWatts,
  23. double? weightedAverageWatts,
  24. MapData? map,
  25. String? providerId,
  26. Source? source,
})

Implementation

Workout({
  required this.userId,
  required this.userKey,
  required this.id,
  this.title,
  this.timezoneOffset,
  this.averageHr,
  this.maxHr,
  this.distance,
  this.timeStart,
  this.timeEnd,
  this.calories,
  this.sport,
  this.hrZones = const [],
  this.movingTime,
  this.totalElevationGain,
  this.elevHigh,
  this.elevLow,
  this.averageSpeed,
  this.maxSpeed,
  this.averageWatts,
  this.deviceWatts,
  this.maxWatts,
  this.weightedAverageWatts,
  this.map,
  this.providerId,
  this.source,
});