toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> json = <String, dynamic>{
'requestAgent': 'flutter-alpha',
};
if (keywords != null && keywords!.isNotEmpty) {
assert(keywords!.every((String s) => s.isNotEmpty));
json['keywords'] = keywords;
}
if (nonPersonalizedAds != null)
json['nonPersonalizedAds'] = nonPersonalizedAds;
if (contentUrl != null && contentUrl!.isNotEmpty)
json['contentUrl'] = contentUrl;
return json;
}