YoutubeAdGroupAd.fromJson constructor

YoutubeAdGroupAd.fromJson(
  1. Map json_
)

Implementation

YoutubeAdGroupAd.fromJson(core.Map json_)
    : this(
        adGroupAdId: json_.containsKey('adGroupAdId')
            ? json_['adGroupAdId'] as core.String
            : null,
        adGroupId: json_.containsKey('adGroupId')
            ? json_['adGroupId'] as core.String
            : null,
        adUrls: json_.containsKey('adUrls')
            ? (json_['adUrls'] as core.List)
                .map((value) => AdUrl.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        advertiserId: json_.containsKey('advertiserId')
            ? json_['advertiserId'] as core.String
            : null,
        audioAd: json_.containsKey('audioAd')
            ? AudioAd.fromJson(
                json_['audioAd'] as core.Map<core.String, core.dynamic>)
            : null,
        bumperAd: json_.containsKey('bumperAd')
            ? BumperAd.fromJson(
                json_['bumperAd'] as core.Map<core.String, core.dynamic>)
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        displayVideoSourceAd: json_.containsKey('displayVideoSourceAd')
            ? DisplayVideoSourceAd.fromJson(json_['displayVideoSourceAd']
                as core.Map<core.String, core.dynamic>)
            : null,
        entityStatus: json_.containsKey('entityStatus')
            ? json_['entityStatus'] as core.String
            : null,
        inStreamAd: json_.containsKey('inStreamAd')
            ? InStreamAd.fromJson(
                json_['inStreamAd'] as core.Map<core.String, core.dynamic>)
            : null,
        mastheadAd: json_.containsKey('mastheadAd')
            ? MastheadAd.fromJson(
                json_['mastheadAd'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nonSkippableAd: json_.containsKey('nonSkippableAd')
            ? NonSkippableAd.fromJson(json_['nonSkippableAd']
                as core.Map<core.String, core.dynamic>)
            : null,
        videoDiscoverAd: json_.containsKey('videoDiscoverAd')
            ? VideoDiscoveryAd.fromJson(json_['videoDiscoverAd']
                as core.Map<core.String, core.dynamic>)
            : null,
        videoPerformanceAd: json_.containsKey('videoPerformanceAd')
            ? VideoPerformanceAd.fromJson(json_['videoPerformanceAd']
                as core.Map<core.String, core.dynamic>)
            : null,
      );