CreativeServingDecision.fromJson constructor

CreativeServingDecision.fromJson(
  1. Map json_
)

Implementation

CreativeServingDecision.fromJson(core.Map json_)
    : this(
        adTechnologyProviders: json_.containsKey('adTechnologyProviders')
            ? AdTechnologyProviders.fromJson(json_['adTechnologyProviders']
                as core.Map<core.String, core.dynamic>)
            : null,
        chinaPolicyCompliance: json_.containsKey('chinaPolicyCompliance')
            ? PolicyCompliance.fromJson(json_['chinaPolicyCompliance']
                as core.Map<core.String, core.dynamic>)
            : null,
        dealsPolicyCompliance: json_.containsKey('dealsPolicyCompliance')
            ? PolicyCompliance.fromJson(json_['dealsPolicyCompliance']
                as core.Map<core.String, core.dynamic>)
            : null,
        detectedAdvertisers: json_.containsKey('detectedAdvertisers')
            ? (json_['detectedAdvertisers'] as core.List)
                .map((value) => AdvertiserAndBrand.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        detectedAttributes: json_.containsKey('detectedAttributes')
            ? (json_['detectedAttributes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        detectedClickThroughUrls:
            json_.containsKey('detectedClickThroughUrls')
                ? (json_['detectedClickThroughUrls'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        detectedDomains: json_.containsKey('detectedDomains')
            ? (json_['detectedDomains'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        detectedLanguages: json_.containsKey('detectedLanguages')
            ? (json_['detectedLanguages'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        detectedProductCategories:
            json_.containsKey('detectedProductCategories')
                ? (json_['detectedProductCategories'] as core.List)
                    .map((value) => value as core.int)
                    .toList()
                : null,
        detectedSensitiveCategories:
            json_.containsKey('detectedSensitiveCategories')
                ? (json_['detectedSensitiveCategories'] as core.List)
                    .map((value) => value as core.int)
                    .toList()
                : null,
        detectedVendorIds: json_.containsKey('detectedVendorIds')
            ? (json_['detectedVendorIds'] as core.List)
                .map((value) => value as core.int)
                .toList()
            : null,
        lastStatusUpdate: json_.containsKey('lastStatusUpdate')
            ? json_['lastStatusUpdate'] as core.String
            : null,
        networkPolicyCompliance: json_.containsKey('networkPolicyCompliance')
            ? PolicyCompliance.fromJson(json_['networkPolicyCompliance']
                as core.Map<core.String, core.dynamic>)
            : null,
        platformPolicyCompliance:
            json_.containsKey('platformPolicyCompliance')
                ? PolicyCompliance.fromJson(json_['platformPolicyCompliance']
                    as core.Map<core.String, core.dynamic>)
                : null,
        russiaPolicyCompliance: json_.containsKey('russiaPolicyCompliance')
            ? PolicyCompliance.fromJson(json_['russiaPolicyCompliance']
                as core.Map<core.String, core.dynamic>)
            : null,
      );