toJson method
Converts the base track data to a JSON representation.
Implementation
@override
/// Converts the base track data to a JSON representation.
Map<String, dynamic> toJson() {
return {
...super.toJson(),
'event': event,
if (context != null) 'context': context,
if (properties != null) 'properties': properties,
};
}