ActivityContentDetailsPromotedItem.fromJson constructor

ActivityContentDetailsPromotedItem.fromJson(
  1. Map json_
)

Implementation

ActivityContentDetailsPromotedItem.fromJson(core.Map json_)
    : this(
        adTag:
            json_.containsKey('adTag') ? json_['adTag'] as core.String : null,
        clickTrackingUrl: json_.containsKey('clickTrackingUrl')
            ? json_['clickTrackingUrl'] as core.String
            : null,
        creativeViewUrl: json_.containsKey('creativeViewUrl')
            ? json_['creativeViewUrl'] as core.String
            : null,
        ctaType: json_.containsKey('ctaType')
            ? json_['ctaType'] as core.String
            : null,
        customCtaButtonText: json_.containsKey('customCtaButtonText')
            ? json_['customCtaButtonText'] as core.String
            : null,
        descriptionText: json_.containsKey('descriptionText')
            ? json_['descriptionText'] as core.String
            : null,
        destinationUrl: json_.containsKey('destinationUrl')
            ? json_['destinationUrl'] as core.String
            : null,
        forecastingUrl: json_.containsKey('forecastingUrl')
            ? (json_['forecastingUrl'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        impressionUrl: json_.containsKey('impressionUrl')
            ? (json_['impressionUrl'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        videoId: json_.containsKey('videoId')
            ? json_['videoId'] as core.String
            : null,
      );