PlacementGroup.fromJson constructor

PlacementGroup.fromJson(
  1. Map json_
)

Implementation

PlacementGroup.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,
        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,
        childPlacementIds: json_.containsKey('childPlacementIds')
            ? (json_['childPlacementIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        comment: json_.containsKey('comment')
            ? json_['comment'] as core.String
            : null,
        contentCategoryId: json_.containsKey('contentCategoryId')
            ? json_['contentCategoryId'] as core.String
            : 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,
        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,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        placementGroupType: json_.containsKey('placementGroupType')
            ? json_['placementGroupType'] as core.String
            : 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,
        primaryPlacementId: json_.containsKey('primaryPlacementId')
            ? json_['primaryPlacementId'] as core.String
            : null,
        primaryPlacementIdDimensionValue:
            json_.containsKey('primaryPlacementIdDimensionValue')
                ? DimensionValue.fromJson(
                    json_['primaryPlacementIdDimensionValue']
                        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,
        subaccountId: json_.containsKey('subaccountId')
            ? json_['subaccountId'] as core.String
            : null,
      );