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