YoutubeAndPartnersSettings.fromJson constructor

YoutubeAndPartnersSettings.fromJson(
  1. Map json_
)

Implementation

YoutubeAndPartnersSettings.fromJson(core.Map json_)
    : this(
        contentCategory: json_.containsKey('contentCategory')
            ? json_['contentCategory'] as core.String
            : null,
        effectiveContentCategory:
            json_.containsKey('effectiveContentCategory')
                ? json_['effectiveContentCategory'] as core.String
                : null,
        inventorySourceSettings: json_.containsKey('inventorySourceSettings')
            ? YoutubeAndPartnersInventorySourceConfig.fromJson(
                json_['inventorySourceSettings']
                    as core.Map<core.String, core.dynamic>)
            : null,
        leadFormId: json_.containsKey('leadFormId')
            ? json_['leadFormId'] as core.String
            : null,
        linkedMerchantId: json_.containsKey('linkedMerchantId')
            ? json_['linkedMerchantId'] as core.String
            : null,
        relatedVideoIds: json_.containsKey('relatedVideoIds')
            ? (json_['relatedVideoIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        targetFrequency: json_.containsKey('targetFrequency')
            ? TargetFrequency.fromJson(json_['targetFrequency']
                as core.Map<core.String, core.dynamic>)
            : null,
        thirdPartyMeasurementConfigs:
            json_.containsKey('thirdPartyMeasurementConfigs')
                ? ThirdPartyMeasurementConfigs.fromJson(
                    json_['thirdPartyMeasurementConfigs']
                        as core.Map<core.String, core.dynamic>)
                : null,
        videoAdSequenceSettings: json_.containsKey('videoAdSequenceSettings')
            ? VideoAdSequenceSettings.fromJson(
                json_['videoAdSequenceSettings']
                    as core.Map<core.String, core.dynamic>)
            : null,
        viewFrequencyCap: json_.containsKey('viewFrequencyCap')
            ? FrequencyCap.fromJson(json_['viewFrequencyCap']
                as core.Map<core.String, core.dynamic>)
            : null,
      );