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