Workout.fromJson constructor

Workout.fromJson(
  1. Map<String, dynamic> json
)

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']));