toJson method
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'n': frameNumber,
if (entries.isNotEmpty)
// Match Flutter's compact wire representation: [locationId, count, …].
'e': entries
.expand<Object?>((entry) => <Object?>[entry.locationId, entry.count])
.toList(growable: false),
};