toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      '"id"': id == null ? null : '"$id"',
      '"name"': name == null ? null : '"$name"',
      '"workoutIntro"': workoutIntro == null ? null : '"$workoutIntro"',
      '"soundTrack"': soundTrack == null ? null : '"$soundTrack"',
      '"exercises"': exercises.map((e) => e.toJson().toString()).toList(),
      '"getInFrame"': getInFrame == null ? null : '"$getInFrame"',
      '"bodycalFinished"':
          bodycalFinished == null ? null : '"$bodycalFinished"',
      '"workoutClosure"': workoutClosure == null ? null : '"$workoutClosure"',
    };