toMap method

  1. @override
Map<String, dynamic> toMap()
override

Converts the FirebaseCrashlyticsLogEvent 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 Firebase Crashlytics.

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    'name': eventName,
    'parameters': {
      'error': eventMessage,
      'stackTrace': stackTrace,
    },
  };
}