toMap method
Implementation
Map<String, Object?> toMap() {
final conf = <String, Object?>{
'appId': appId,
'devicePlatform': devicePlatform?.name,
'base64Encoding': base64Encoding,
'platformContext': platformContext,
'geoLocationContext': geoLocationContext,
'sessionContext': sessionContext,
'webPageContext': webPageContext,
'screenContext': screenContext,
'applicationContext': applicationContext,
'webActivityTracking': webActivityTracking?.toMap(),
'userAnonymisation': userAnonymisation,
'lifecycleAutotracking': lifecycleAutotracking,
'screenEngagementAutotracking': screenEngagementAutotracking,
'platformContextProperties': platformContextProperties?.toMap(),
'jsMediaPluginURL': jsMediaPluginURL
};
conf.removeWhere((key, value) => value == null);
return conf;
}