toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> json = <String, dynamic>{};
  if (adContentClassification != null)
    json['adContentClassification'] = adContentClassification;
  if (tagForUnderAgeOfPromise != null)
    json['tagForUnderAgeOfPromise'] = tagForUnderAgeOfPromise;
  if (tagForChildProtection != null)
    json['tagForChildProtection'] = tagForChildProtection;
  if (nonPersonalizedAd != null)
    json['nonPersonalizedAd'] = nonPersonalizedAd;
  if (appCountry != null) json['appCountry'] = appCountry;
  if (appLang != null) json['appLang'] = appLang;
  if (consent != null) json['consent'] = consent;
  if (requestLocation != null) json['requestLocation'] = requestLocation;

  return json;
}