toJson method

Map<String, Object> toJson ()

Implementation

core.Map<core.String, core.Object> toJson() {
  final core.Map<core.String, core.Object> _json =
      new core.Map<core.String, core.Object>();
  if (advertiser != null) {
    _json["advertiser"] = advertiser;
  }
  if (appIcon != null) {
    _json["appIcon"] = (appIcon).toJson();
  }
  if (body != null) {
    _json["body"] = body;
  }
  if (callToAction != null) {
    _json["callToAction"] = callToAction;
  }
  if (clickLinkUrl != null) {
    _json["clickLinkUrl"] = clickLinkUrl;
  }
  if (clickTrackingUrl != null) {
    _json["clickTrackingUrl"] = clickTrackingUrl;
  }
  if (headline != null) {
    _json["headline"] = headline;
  }
  if (image != null) {
    _json["image"] = (image).toJson();
  }
  if (impressionTrackingUrl != null) {
    _json["impressionTrackingUrl"] = impressionTrackingUrl;
  }
  if (logo != null) {
    _json["logo"] = (logo).toJson();
  }
  if (price != null) {
    _json["price"] = price;
  }
  if (starRating != null) {
    _json["starRating"] = starRating;
  }
  if (videoURL != null) {
    _json["videoURL"] = videoURL;
  }
  return _json;
}