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