toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'sessions': sessions,
    'attribution': attribution,
    'pageViews': pageViews,
    'appLifecycles': appLifecycles,
    'deepLinks': deepLinks,
    'screenViews': screenViews,
    'formInteractions': formInteractions,
    'fileDownloads': fileDownloads,
    // Serialize via ElementInteractionsEnabled so the "enable everything"
    // sentinel applies the Flutter-aware cssSelectorAllowlist on web instead of
    // a bare `true` (which would capture no Flutter widgets).
    'elementInteractions':
        ElementInteractions.toMapOrBool(const ElementInteractionsEnabled()),
    'pageUrlEnrichment': pageUrlEnrichment,
  };
}