WorkoutModel constructor

const WorkoutModel({
  1. required String id,
  2. required String title,
  3. required String imgURL,
  4. String? category,
  5. required String description,
  6. int? totalMinutes,
  7. int? totalCalories,
  8. required List<String> bodyParts,
  9. String? difficultyLevel,
  10. required List<ExerciseModel> sequence,
  11. Map<String, dynamic>? rawJSON,
})

Implementation

const WorkoutModel({
  required this.id,
  required this.title,
  required this.imgURL,
  this.category,
  required this.description,
  this.totalMinutes,
  this.totalCalories,
  required this.bodyParts,
  this.difficultyLevel,
  required this.sequence,
  this.rawJSON,
});