toJson method
Serializes the object to its JSON representation.
Implementation
@override
Map<String, dynamic> toJson() => Map.of(otherLocations)
..putIterableIfNotEmpty("fragments", fragments)
..putOpt("progression", progression)
..putOpt("position", position)
..putOpt("totalProgression", totalProgression);