toMap method

Map<String, dynamic> toMap()

Converts the LogEvent to a map, which typically includes the event name and any parameters provided.

This method can be overridden by subclasses to include additional or altered information. Returns a map representation of the log event, which can be directly used for logging or further processing.

Implementation

Map<String, dynamic> toMap() {
  return {'eventName': eventName, 'parameters': parameters};
}