toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (advertiserName != null) 'advertiserName': advertiserName!,
      if (appIcon != null) 'appIcon': appIcon!,
      if (body != null) 'body': body!,
      if (callToAction != null) 'callToAction': callToAction!,
      if (clickLinkUrl != null) 'clickLinkUrl': clickLinkUrl!,
      if (clickTrackingUrl != null) 'clickTrackingUrl': clickTrackingUrl!,
      if (headline != null) 'headline': headline!,
      if (image != null) 'image': image!,
      if (logo != null) 'logo': logo!,
      if (priceDisplayText != null) 'priceDisplayText': priceDisplayText!,
      if (starRating != null) 'starRating': starRating!,
      if (storeUrl != null) 'storeUrl': storeUrl!,
      if (videoUrl != null) 'videoUrl': videoUrl!,
    };