toMap method
Converts the SentryLogEvent to a map, including the event name, message, and stack trace.
Overrides the toMap method to include additional logging information specific to this event type. Returns a map which can be directly used for logging to Sentry.
Implementation
@override
Map<String, dynamic> toMap() {
return {
'name': eventName,
'parameters': {
'error': eventMessage,
'stackTrace': stackTrace,
},
};
}