toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'apiKey': apiKey,
'host': host,
'flushAt': flushAt,
'maxQueueSize': maxQueueSize,
'maxBatchSize': maxBatchSize,
'flushInterval': flushInterval.inSeconds,
'sendFeatureFlagEvents': sendFeatureFlagEvents,
'preloadFeatureFlags': preloadFeatureFlags,
'captureApplicationLifecycleEvents': captureApplicationLifecycleEvents,
'debug': debug,
'optOut': optOut,
'surveys': surveys,
'personProfiles': personProfiles.name,
'sessionReplay': sessionReplay,
'dataMode': dataMode.name,
'sessionReplayConfig': sessionReplayConfig.toMap(),
'errorTrackingConfig': errorTrackingConfig.toMap(),
};
}