AnalyticsConfig class
Represents the configuration for analytics functionality.
This class encapsulates settings related to enabling tracking, analytics, and the API key required for analytics services. It provides methods for converting between JSON and Dart objects, facilitating data persistence and serialization.
Constructors
- AnalyticsConfig({required bool enableTracking, required bool enableAnalytics, required String apiKey})
- Creates an AnalyticsConfig instance.
-
AnalyticsConfig.fromJson(Map<
String, dynamic> json) -
Creates an AnalyticsConfig instance from a JSON map.
factory
Properties
- apiKey → String
-
The API key used for analytics services.
final
- enableAnalytics → bool
-
Whether analytics collection is enabled.
final
- enableTracking → bool
-
Whether user tracking is enabled.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this AnalyticsConfig instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited