toJson abstract method
Converts the log entry to a JSON-serializable map.
This method must be implemented by all subclasses to provide proper serialization of the log data. The implementation should include all relevant fields from the subclass as well as the base timestamp and tag fields.
Returns:
A Map<String, dynamic>
containing the log data in a format
that can be serialized to JSON.
Implementation
Map<String, dynamic> toJson();