Placement.fromJson constructor

Placement.fromJson(
  1. Map json_
)

Implementation

Placement.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        activeStatus: json_.containsKey('activeStatus')
            ? json_['activeStatus'] as core.String
            : null,
        adBlockingOptOut: json_.containsKey('adBlockingOptOut')
            ? json_['adBlockingOptOut'] as core.bool
            : null,
        additionalSizes: json_.containsKey('additionalSizes')
            ? (json_['additionalSizes'] as core.List)
                .map((value) => Size.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : 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,
        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,
        comment: json_.containsKey('comment')
            ? json_['comment'] as core.String
            : null,
        compatibility: json_.containsKey('compatibility')
            ? json_['compatibility'] as core.String
            : null,
        contentCategoryId: json_.containsKey('contentCategoryId')
            ? json_['contentCategoryId'] as core.String
            : null,
        conversionDomainOverride:
            json_.containsKey('conversionDomainOverride')
                ? PlacementConversionDomainOverride.fromJson(
                    json_['conversionDomainOverride']
                        as core.Map<core.String, core.dynamic>)
                : null,
        createInfo: json_.containsKey('createInfo')
            ? LastModifiedInfo.fromJson(
                json_['createInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        directorySiteId: json_.containsKey('directorySiteId')
            ? json_['directorySiteId'] as core.String
            : null,
        directorySiteIdDimensionValue: json_
                .containsKey('directorySiteIdDimensionValue')
            ? DimensionValue.fromJson(json_['directorySiteIdDimensionValue']
                as core.Map<core.String, core.dynamic>)
            : null,
        externalId: json_.containsKey('externalId')
            ? json_['externalId'] as core.String
            : 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,
        keyName: json_.containsKey('keyName')
            ? json_['keyName'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        lastModifiedInfo: json_.containsKey('lastModifiedInfo')
            ? LastModifiedInfo.fromJson(json_['lastModifiedInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        lookbackConfiguration: json_.containsKey('lookbackConfiguration')
            ? LookbackConfiguration.fromJson(json_['lookbackConfiguration']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        partnerWrappingData: json_.containsKey('partnerWrappingData')
            ? MeasurementPartnerWrappingData.fromJson(
                json_['partnerWrappingData']
                    as core.Map<core.String, core.dynamic>)
            : null,
        paymentApproved: json_.containsKey('paymentApproved')
            ? json_['paymentApproved'] as core.bool
            : null,
        paymentSource: json_.containsKey('paymentSource')
            ? json_['paymentSource'] as core.String
            : null,
        placementGroupId: json_.containsKey('placementGroupId')
            ? json_['placementGroupId'] as core.String
            : null,
        placementGroupIdDimensionValue: json_
                .containsKey('placementGroupIdDimensionValue')
            ? DimensionValue.fromJson(json_['placementGroupIdDimensionValue']
                as core.Map<core.String, core.dynamic>)
            : null,
        placementStrategyId: json_.containsKey('placementStrategyId')
            ? json_['placementStrategyId'] as core.String
            : null,
        pricingSchedule: json_.containsKey('pricingSchedule')
            ? PricingSchedule.fromJson(json_['pricingSchedule']
                as core.Map<core.String, core.dynamic>)
            : null,
        primary: json_.containsKey('primary')
            ? json_['primary'] as core.bool
            : null,
        publisherUpdateInfo: json_.containsKey('publisherUpdateInfo')
            ? LastModifiedInfo.fromJson(json_['publisherUpdateInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        siteId: json_.containsKey('siteId')
            ? json_['siteId'] as core.String
            : null,
        siteIdDimensionValue: json_.containsKey('siteIdDimensionValue')
            ? DimensionValue.fromJson(json_['siteIdDimensionValue']
                as core.Map<core.String, core.dynamic>)
            : null,
        size: json_.containsKey('size')
            ? Size.fromJson(
                json_['size'] as core.Map<core.String, core.dynamic>)
            : null,
        sslRequired: json_.containsKey('sslRequired')
            ? json_['sslRequired'] as core.bool
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        subaccountId: json_.containsKey('subaccountId')
            ? json_['subaccountId'] as core.String
            : null,
        tagFormats: json_.containsKey('tagFormats')
            ? (json_['tagFormats'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        tagSetting: json_.containsKey('tagSetting')
            ? TagSetting.fromJson(
                json_['tagSetting'] as core.Map<core.String, core.dynamic>)
            : null,
        videoActiveViewOptOut: json_.containsKey('videoActiveViewOptOut')
            ? json_['videoActiveViewOptOut'] as core.bool
            : null,
        videoSettings: json_.containsKey('videoSettings')
            ? VideoSettings.fromJson(
                json_['videoSettings'] as core.Map<core.String, core.dynamic>)
            : null,
        vpaidAdapterChoice: json_.containsKey('vpaidAdapterChoice')
            ? json_['vpaidAdapterChoice'] as core.String
            : null,
        wrappingOptOut: json_.containsKey('wrappingOptOut')
            ? json_['wrappingOptOut'] as core.bool
            : null,
      );