CommonInStreamAttribute.fromJson constructor

CommonInStreamAttribute.fromJson(
  1. Map json_
)

Implementation

CommonInStreamAttribute.fromJson(core.Map json_)
    : this(
        actionButtonLabel: json_.containsKey('actionButtonLabel')
            ? json_['actionButtonLabel'] as core.String
            : null,
        actionHeadline: json_.containsKey('actionHeadline')
            ? json_['actionHeadline'] as core.String
            : null,
        companionBanner: json_.containsKey('companionBanner')
            ? ImageAsset.fromJson(json_['companionBanner']
                as core.Map<core.String, core.dynamic>)
            : null,
        displayUrl: json_.containsKey('displayUrl')
            ? json_['displayUrl'] as core.String
            : null,
        finalUrl: json_.containsKey('finalUrl')
            ? json_['finalUrl'] as core.String
            : null,
        trackingUrl: json_.containsKey('trackingUrl')
            ? json_['trackingUrl'] as core.String
            : null,
        video: json_.containsKey('video')
            ? YoutubeVideoDetails.fromJson(
                json_['video'] as core.Map<core.String, core.dynamic>)
            : null,
      );