Ad.fromJson constructor

Ad.fromJson(
  1. Map json_
)

Implementation

Ad.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        active:
            json_.containsKey('active') ? json_['active'] as core.bool : null,
        advertiserId: json_.containsKey('advertiserId')
            ? json_['advertiserId'] as core.String
            : null,
        advertiserIdDimensionValue:
            json_.containsKey('advertiserIdDimensionValue')
                ? DimensionValue.fromJson(json_['advertiserIdDimensionValue']
                    as core.Map<core.String, core.dynamic>)
                : null,
        archived: json_.containsKey('archived')
            ? json_['archived'] as core.bool
            : null,
        audienceSegmentId: json_.containsKey('audienceSegmentId')
            ? json_['audienceSegmentId'] as core.String
            : null,
        campaignId: json_.containsKey('campaignId')
            ? json_['campaignId'] as core.String
            : null,
        campaignIdDimensionValue:
            json_.containsKey('campaignIdDimensionValue')
                ? DimensionValue.fromJson(json_['campaignIdDimensionValue']
                    as core.Map<core.String, core.dynamic>)
                : null,
        clickThroughUrl: json_.containsKey('clickThroughUrl')
            ? ClickThroughUrl.fromJson(json_['clickThroughUrl']
                as core.Map<core.String, core.dynamic>)
            : null,
        clickThroughUrlSuffixProperties:
            json_.containsKey('clickThroughUrlSuffixProperties')
                ? ClickThroughUrlSuffixProperties.fromJson(
                    json_['clickThroughUrlSuffixProperties']
                        as core.Map<core.String, core.dynamic>)
                : null,
        comments: json_.containsKey('comments')
            ? json_['comments'] as core.String
            : null,
        compatibility: json_.containsKey('compatibility')
            ? json_['compatibility'] as core.String
            : null,
        createInfo: json_.containsKey('createInfo')
            ? LastModifiedInfo.fromJson(
                json_['createInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        creativeGroupAssignments:
            json_.containsKey('creativeGroupAssignments')
                ? (json_['creativeGroupAssignments'] as core.List)
                    .map((value) => CreativeGroupAssignment.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        creativeRotation: json_.containsKey('creativeRotation')
            ? CreativeRotation.fromJson(json_['creativeRotation']
                as core.Map<core.String, core.dynamic>)
            : null,
        dayPartTargeting: json_.containsKey('dayPartTargeting')
            ? DayPartTargeting.fromJson(json_['dayPartTargeting']
                as core.Map<core.String, core.dynamic>)
            : null,
        defaultClickThroughEventTagProperties:
            json_.containsKey('defaultClickThroughEventTagProperties')
                ? DefaultClickThroughEventTagProperties.fromJson(
                    json_['defaultClickThroughEventTagProperties']
                        as core.Map<core.String, core.dynamic>)
                : null,
        deliverySchedule: json_.containsKey('deliverySchedule')
            ? DeliverySchedule.fromJson(json_['deliverySchedule']
                as core.Map<core.String, core.dynamic>)
            : null,
        dynamicClickTracker: json_.containsKey('dynamicClickTracker')
            ? json_['dynamicClickTracker'] as core.bool
            : null,
        endTime: json_.containsKey('endTime')
            ? core.DateTime.parse(json_['endTime'] as core.String)
            : null,
        eventTagOverrides: json_.containsKey('eventTagOverrides')
            ? (json_['eventTagOverrides'] as core.List)
                .map((value) => EventTagOverride.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        geoTargeting: json_.containsKey('geoTargeting')
            ? GeoTargeting.fromJson(
                json_['geoTargeting'] as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        idDimensionValue: json_.containsKey('idDimensionValue')
            ? DimensionValue.fromJson(json_['idDimensionValue']
                as core.Map<core.String, core.dynamic>)
            : null,
        keyValueTargetingExpression:
            json_.containsKey('keyValueTargetingExpression')
                ? KeyValueTargetingExpression.fromJson(
                    json_['keyValueTargetingExpression']
                        as core.Map<core.String, core.dynamic>)
                : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        languageTargeting: json_.containsKey('languageTargeting')
            ? LanguageTargeting.fromJson(json_['languageTargeting']
                as core.Map<core.String, core.dynamic>)
            : null,
        lastModifiedInfo: json_.containsKey('lastModifiedInfo')
            ? LastModifiedInfo.fromJson(json_['lastModifiedInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        placementAssignments: json_.containsKey('placementAssignments')
            ? (json_['placementAssignments'] as core.List)
                .map((value) => PlacementAssignment.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        remarketingListExpression:
            json_.containsKey('remarketingListExpression')
                ? ListTargetingExpression.fromJson(
                    json_['remarketingListExpression']
                        as core.Map<core.String, core.dynamic>)
                : null,
        size: json_.containsKey('size')
            ? Size.fromJson(
                json_['size'] as core.Map<core.String, core.dynamic>)
            : null,
        sslCompliant: json_.containsKey('sslCompliant')
            ? json_['sslCompliant'] as core.bool
            : null,
        sslRequired: json_.containsKey('sslRequired')
            ? json_['sslRequired'] as core.bool
            : null,
        startTime: json_.containsKey('startTime')
            ? core.DateTime.parse(json_['startTime'] as core.String)
            : null,
        subaccountId: json_.containsKey('subaccountId')
            ? json_['subaccountId'] as core.String
            : null,
        targetingTemplateId: json_.containsKey('targetingTemplateId')
            ? json_['targetingTemplateId'] as core.String
            : null,
        technologyTargeting: json_.containsKey('technologyTargeting')
            ? TechnologyTargeting.fromJson(json_['technologyTargeting']
                as core.Map<core.String, core.dynamic>)
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );