toMap method
Implementation
@override
Map<String, dynamic> toMap() {
final dict = <String, dynamic>{
'type': 'contextTargeting', // Add type for Kotlin conversion
};
final keyword = _parameters['keyword'] as List<String>?;
if (keyword != null && keyword.isNotEmpty) {
dict['keywords'] = keyword;
dict['f.keyword'] = keyword;
}
return dict;
}