Workout.fromJson constructor
General constructor from JSON payload
Implementation
Workout.fromJson(Map<String, dynamic> json)
: duration = json['duration'],
workoutEvents = WorkoutEvent.collect(json['workoutEvents']),
super.from(json, WorkoutHarmonized.fromJson(json['harmonized']));