toJson method

  1. @override
Map<String, Object?> toJson()

Implementation

@override
Map<String, Object?> toJson() => {
      if (heroImage != null) "hero_image": encodeValue(heroImage),
      if (thumbnail != null) "thumbnail": encodeValue(thumbnail),
      if (webPageUrl != null) "web_page_url": encodeValue(webPageUrl),
      if (brandLogo != null) "brand_logo": encodeValue(brandLogo),
      if (infographic != null) "infographic": encodeValue(infographic),
      if (promoVideo != null) "promo_video": encodeValue(promoVideo),
      if (demoVideo != null) "demo_video": encodeValue(demoVideo),
      if (gallery != null) "gallery": encodeValue(gallery),
      if (downloads != null) "downloads": encodeValue(downloads),
    };