Creative.fromJson constructor

Creative.fromJson(
  1. Map json_
)

Implementation

Creative.fromJson(core.Map json_)
    : this(
        additionalDimensions: json_.containsKey('additionalDimensions')
            ? (json_['additionalDimensions'] as core.List)
                .map((value) => Dimensions.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        advertiserId: json_.containsKey('advertiserId')
            ? json_['advertiserId'] as core.String
            : null,
        appendedTag: json_.containsKey('appendedTag')
            ? json_['appendedTag'] as core.String
            : null,
        assets: json_.containsKey('assets')
            ? (json_['assets'] as core.List)
                .map((value) => AssetAssociation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        cmPlacementId: json_.containsKey('cmPlacementId')
            ? json_['cmPlacementId'] as core.String
            : null,
        cmTrackingAd: json_.containsKey('cmTrackingAd')
            ? CmTrackingAd.fromJson(
                json_['cmTrackingAd'] as core.Map<core.String, core.dynamic>)
            : null,
        companionCreativeIds: json_.containsKey('companionCreativeIds')
            ? (json_['companionCreativeIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        counterEvents: json_.containsKey('counterEvents')
            ? (json_['counterEvents'] as core.List)
                .map((value) => CounterEvent.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        creativeAttributes: json_.containsKey('creativeAttributes')
            ? (json_['creativeAttributes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        creativeId: json_.containsKey('creativeId')
            ? json_['creativeId'] as core.String
            : null,
        creativeType: json_.containsKey('creativeType')
            ? json_['creativeType'] as core.String
            : null,
        dimensions: json_.containsKey('dimensions')
            ? Dimensions.fromJson(
                json_['dimensions'] as core.Map<core.String, core.dynamic>)
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        dynamic: json_.containsKey('dynamic')
            ? json_['dynamic'] as core.bool
            : null,
        entityStatus: json_.containsKey('entityStatus')
            ? json_['entityStatus'] as core.String
            : null,
        exitEvents: json_.containsKey('exitEvents')
            ? (json_['exitEvents'] as core.List)
                .map((value) => ExitEvent.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        expandOnHover: json_.containsKey('expandOnHover')
            ? json_['expandOnHover'] as core.bool
            : null,
        expandingDirection: json_.containsKey('expandingDirection')
            ? json_['expandingDirection'] as core.String
            : null,
        hostingSource: json_.containsKey('hostingSource')
            ? json_['hostingSource'] as core.String
            : null,
        html5Video: json_.containsKey('html5Video')
            ? json_['html5Video'] as core.bool
            : null,
        iasCampaignMonitoring: json_.containsKey('iasCampaignMonitoring')
            ? json_['iasCampaignMonitoring'] as core.bool
            : null,
        integrationCode: json_.containsKey('integrationCode')
            ? json_['integrationCode'] as core.String
            : null,
        jsTrackerUrl: json_.containsKey('jsTrackerUrl')
            ? json_['jsTrackerUrl'] as core.String
            : null,
        lineItemIds: json_.containsKey('lineItemIds')
            ? (json_['lineItemIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        mediaDuration: json_.containsKey('mediaDuration')
            ? json_['mediaDuration'] as core.String
            : null,
        mp3Audio: json_.containsKey('mp3Audio')
            ? json_['mp3Audio'] as core.bool
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        notes:
            json_.containsKey('notes') ? json_['notes'] as core.String : null,
        obaIcon: json_.containsKey('obaIcon')
            ? ObaIcon.fromJson(
                json_['obaIcon'] as core.Map<core.String, core.dynamic>)
            : null,
        oggAudio: json_.containsKey('oggAudio')
            ? json_['oggAudio'] as core.bool
            : null,
        progressOffset: json_.containsKey('progressOffset')
            ? AudioVideoOffset.fromJson(json_['progressOffset']
                as core.Map<core.String, core.dynamic>)
            : null,
        requireHtml5: json_.containsKey('requireHtml5')
            ? json_['requireHtml5'] as core.bool
            : null,
        requireMraid: json_.containsKey('requireMraid')
            ? json_['requireMraid'] as core.bool
            : null,
        requirePingForAttribution:
            json_.containsKey('requirePingForAttribution')
                ? json_['requirePingForAttribution'] as core.bool
                : null,
        reviewStatus: json_.containsKey('reviewStatus')
            ? ReviewStatusInfo.fromJson(
                json_['reviewStatus'] as core.Map<core.String, core.dynamic>)
            : null,
        skipOffset: json_.containsKey('skipOffset')
            ? AudioVideoOffset.fromJson(
                json_['skipOffset'] as core.Map<core.String, core.dynamic>)
            : null,
        skippable: json_.containsKey('skippable')
            ? json_['skippable'] as core.bool
            : null,
        thirdPartyTag: json_.containsKey('thirdPartyTag')
            ? json_['thirdPartyTag'] as core.String
            : null,
        thirdPartyUrls: json_.containsKey('thirdPartyUrls')
            ? (json_['thirdPartyUrls'] as core.List)
                .map((value) => ThirdPartyUrl.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        timerEvents: json_.containsKey('timerEvents')
            ? (json_['timerEvents'] as core.List)
                .map((value) => TimerEvent.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        trackerUrls: json_.containsKey('trackerUrls')
            ? (json_['trackerUrls'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        transcodes: json_.containsKey('transcodes')
            ? (json_['transcodes'] as core.List)
                .map((value) => Transcode.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        universalAdId: json_.containsKey('universalAdId')
            ? UniversalAdId.fromJson(
                json_['universalAdId'] as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        vastTagUrl: json_.containsKey('vastTagUrl')
            ? json_['vastTagUrl'] as core.String
            : null,
        vpaid:
            json_.containsKey('vpaid') ? json_['vpaid'] as core.bool : null,
      );