AssignedTargetingOption.fromJson constructor

AssignedTargetingOption.fromJson(
  1. Map json_
)

Implementation

AssignedTargetingOption.fromJson(core.Map json_)
    : this(
        ageRangeDetails: json_.containsKey('ageRangeDetails')
            ? AgeRangeAssignedTargetingOptionDetails.fromJson(
                json_['ageRangeDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        appCategoryDetails: json_.containsKey('appCategoryDetails')
            ? AppCategoryAssignedTargetingOptionDetails.fromJson(
                json_['appCategoryDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        appDetails: json_.containsKey('appDetails')
            ? AppAssignedTargetingOptionDetails.fromJson(
                json_['appDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        assignedTargetingOptionId:
            json_.containsKey('assignedTargetingOptionId')
                ? json_['assignedTargetingOptionId'] as core.String
                : null,
        assignedTargetingOptionIdAlias:
            json_.containsKey('assignedTargetingOptionIdAlias')
                ? json_['assignedTargetingOptionIdAlias'] as core.String
                : null,
        audienceGroupDetails: json_.containsKey('audienceGroupDetails')
            ? AudienceGroupAssignedTargetingOptionDetails.fromJson(
                json_['audienceGroupDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        audioContentTypeDetails: json_.containsKey('audioContentTypeDetails')
            ? AudioContentTypeAssignedTargetingOptionDetails.fromJson(
                json_['audioContentTypeDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        authorizedSellerStatusDetails: json_
                .containsKey('authorizedSellerStatusDetails')
            ? AuthorizedSellerStatusAssignedTargetingOptionDetails.fromJson(
                json_['authorizedSellerStatusDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        browserDetails: json_.containsKey('browserDetails')
            ? BrowserAssignedTargetingOptionDetails.fromJson(
                json_['browserDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        businessChainDetails: json_.containsKey('businessChainDetails')
            ? BusinessChainAssignedTargetingOptionDetails.fromJson(
                json_['businessChainDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        carrierAndIspDetails: json_.containsKey('carrierAndIspDetails')
            ? CarrierAndIspAssignedTargetingOptionDetails.fromJson(
                json_['carrierAndIspDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        categoryDetails: json_.containsKey('categoryDetails')
            ? CategoryAssignedTargetingOptionDetails.fromJson(
                json_['categoryDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        channelDetails: json_.containsKey('channelDetails')
            ? ChannelAssignedTargetingOptionDetails.fromJson(
                json_['channelDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        contentDurationDetails: json_.containsKey('contentDurationDetails')
            ? ContentDurationAssignedTargetingOptionDetails.fromJson(
                json_['contentDurationDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        contentGenreDetails: json_.containsKey('contentGenreDetails')
            ? ContentGenreAssignedTargetingOptionDetails.fromJson(
                json_['contentGenreDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        contentInstreamPositionDetails: json_
                .containsKey('contentInstreamPositionDetails')
            ? ContentInstreamPositionAssignedTargetingOptionDetails.fromJson(
                json_['contentInstreamPositionDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        contentOutstreamPositionDetails: json_
                .containsKey('contentOutstreamPositionDetails')
            ? ContentOutstreamPositionAssignedTargetingOptionDetails.fromJson(
                json_['contentOutstreamPositionDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        contentStreamTypeDetails:
            json_.containsKey('contentStreamTypeDetails')
                ? ContentStreamTypeAssignedTargetingOptionDetails.fromJson(
                    json_['contentStreamTypeDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        dayAndTimeDetails: json_.containsKey('dayAndTimeDetails')
            ? DayAndTimeAssignedTargetingOptionDetails.fromJson(
                json_['dayAndTimeDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        deviceMakeModelDetails: json_.containsKey('deviceMakeModelDetails')
            ? DeviceMakeModelAssignedTargetingOptionDetails.fromJson(
                json_['deviceMakeModelDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        deviceTypeDetails: json_.containsKey('deviceTypeDetails')
            ? DeviceTypeAssignedTargetingOptionDetails.fromJson(
                json_['deviceTypeDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        digitalContentLabelExclusionDetails:
            json_.containsKey('digitalContentLabelExclusionDetails')
                ? DigitalContentLabelAssignedTargetingOptionDetails.fromJson(
                    json_['digitalContentLabelExclusionDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        environmentDetails: json_.containsKey('environmentDetails')
            ? EnvironmentAssignedTargetingOptionDetails.fromJson(
                json_['environmentDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        exchangeDetails: json_.containsKey('exchangeDetails')
            ? ExchangeAssignedTargetingOptionDetails.fromJson(
                json_['exchangeDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        genderDetails: json_.containsKey('genderDetails')
            ? GenderAssignedTargetingOptionDetails.fromJson(
                json_['genderDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        geoRegionDetails: json_.containsKey('geoRegionDetails')
            ? GeoRegionAssignedTargetingOptionDetails.fromJson(
                json_['geoRegionDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        householdIncomeDetails: json_.containsKey('householdIncomeDetails')
            ? HouseholdIncomeAssignedTargetingOptionDetails.fromJson(
                json_['householdIncomeDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        inheritance: json_.containsKey('inheritance')
            ? json_['inheritance'] as core.String
            : null,
        inventorySourceDetails: json_.containsKey('inventorySourceDetails')
            ? InventorySourceAssignedTargetingOptionDetails.fromJson(
                json_['inventorySourceDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        inventorySourceGroupDetails:
            json_.containsKey('inventorySourceGroupDetails')
                ? InventorySourceGroupAssignedTargetingOptionDetails.fromJson(
                    json_['inventorySourceGroupDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        keywordDetails: json_.containsKey('keywordDetails')
            ? KeywordAssignedTargetingOptionDetails.fromJson(
                json_['keywordDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        languageDetails: json_.containsKey('languageDetails')
            ? LanguageAssignedTargetingOptionDetails.fromJson(
                json_['languageDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nativeContentPositionDetails: json_
                .containsKey('nativeContentPositionDetails')
            ? NativeContentPositionAssignedTargetingOptionDetails.fromJson(
                json_['nativeContentPositionDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        negativeKeywordListDetails:
            json_.containsKey('negativeKeywordListDetails')
                ? NegativeKeywordListAssignedTargetingOptionDetails.fromJson(
                    json_['negativeKeywordListDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        omidDetails: json_.containsKey('omidDetails')
            ? OmidAssignedTargetingOptionDetails.fromJson(
                json_['omidDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        onScreenPositionDetails: json_.containsKey('onScreenPositionDetails')
            ? OnScreenPositionAssignedTargetingOptionDetails.fromJson(
                json_['onScreenPositionDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        operatingSystemDetails: json_.containsKey('operatingSystemDetails')
            ? OperatingSystemAssignedTargetingOptionDetails.fromJson(
                json_['operatingSystemDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        parentalStatusDetails: json_.containsKey('parentalStatusDetails')
            ? ParentalStatusAssignedTargetingOptionDetails.fromJson(
                json_['parentalStatusDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        poiDetails: json_.containsKey('poiDetails')
            ? PoiAssignedTargetingOptionDetails.fromJson(
                json_['poiDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        proximityLocationListDetails: json_
                .containsKey('proximityLocationListDetails')
            ? ProximityLocationListAssignedTargetingOptionDetails.fromJson(
                json_['proximityLocationListDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        regionalLocationListDetails:
            json_.containsKey('regionalLocationListDetails')
                ? RegionalLocationListAssignedTargetingOptionDetails.fromJson(
                    json_['regionalLocationListDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        sensitiveCategoryExclusionDetails:
            json_.containsKey('sensitiveCategoryExclusionDetails')
                ? SensitiveCategoryAssignedTargetingOptionDetails.fromJson(
                    json_['sensitiveCategoryExclusionDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        sessionPositionDetails: json_.containsKey('sessionPositionDetails')
            ? SessionPositionAssignedTargetingOptionDetails.fromJson(
                json_['sessionPositionDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        subExchangeDetails: json_.containsKey('subExchangeDetails')
            ? SubExchangeAssignedTargetingOptionDetails.fromJson(
                json_['subExchangeDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        targetingType: json_.containsKey('targetingType')
            ? json_['targetingType'] as core.String
            : null,
        thirdPartyVerifierDetails:
            json_.containsKey('thirdPartyVerifierDetails')
                ? ThirdPartyVerifierAssignedTargetingOptionDetails.fromJson(
                    json_['thirdPartyVerifierDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        urlDetails: json_.containsKey('urlDetails')
            ? UrlAssignedTargetingOptionDetails.fromJson(
                json_['urlDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        userRewardedContentDetails:
            json_.containsKey('userRewardedContentDetails')
                ? UserRewardedContentAssignedTargetingOptionDetails.fromJson(
                    json_['userRewardedContentDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        videoPlayerSizeDetails: json_.containsKey('videoPlayerSizeDetails')
            ? VideoPlayerSizeAssignedTargetingOptionDetails.fromJson(
                json_['videoPlayerSizeDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        viewabilityDetails: json_.containsKey('viewabilityDetails')
            ? ViewabilityAssignedTargetingOptionDetails.fromJson(
                json_['viewabilityDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        youtubeChannelDetails: json_.containsKey('youtubeChannelDetails')
            ? YoutubeChannelAssignedTargetingOptionDetails.fromJson(
                json_['youtubeChannelDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        youtubeVideoDetails: json_.containsKey('youtubeVideoDetails')
            ? YoutubeVideoAssignedTargetingOptionDetails.fromJson(
                json_['youtubeVideoDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );