toMap method
Implementation
Map<String, Object?> toMap() {
final conf = <String, Object?>{
'namespace': namespace,
'networkConfig': networkConfig.toMap(),
'trackerConfig': trackerConfig?.toMap(),
'subjectConfig': subjectConfig?.toMap(),
'gdprConfig': gdprConfig?.toMap(),
'emitterConfig': emitterConfig?.toMap()
};
conf.removeWhere((key, value) => value == null);
return conf;
}