toMap method

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

Converts the FirebaseAnalyticsLogEvent to a map, suitable for submission to Firebase Analytics.

Overrides the base toMap method to include the event name and any parameters in a format that Firebase Analytics expects. Returns a map representation of the Firebase Analytics log event, which includes the event name and associated parameters.

Implementation

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