toJson method

Map<String, dynamic> toJson()

Converts this AnalyticsConfig instance to a JSON map.

This method serializes the AnalyticsConfig object into a JSON representation that can be easily stored or transmitted.

Returns a Map containing the 'enableTracking', 'enableAnalytics', and 'apiKey' keys and their corresponding values.

Implementation

Map<String, dynamic> toJson() => {
      'enableTracking': enableTracking,
      'enableAnalytics': enableAnalytics,
      'apiKey': apiKey,
    };