toJson method

  1. @override
Map<String, dynamic> toJson()
override

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