TargetingOption.fromJson constructor

TargetingOption.fromJson(
  1. Map json_
)

Implementation

TargetingOption.fromJson(core.Map json_)
    : this(
        ageRangeDetails: json_.containsKey('ageRangeDetails')
            ? AgeRangeTargetingOptionDetails.fromJson(json_['ageRangeDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        appCategoryDetails: json_.containsKey('appCategoryDetails')
            ? AppCategoryTargetingOptionDetails.fromJson(
                json_['appCategoryDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        audioContentTypeDetails: json_.containsKey('audioContentTypeDetails')
            ? AudioContentTypeTargetingOptionDetails.fromJson(
                json_['audioContentTypeDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        authorizedSellerStatusDetails:
            json_.containsKey('authorizedSellerStatusDetails')
                ? AuthorizedSellerStatusTargetingOptionDetails.fromJson(
                    json_['authorizedSellerStatusDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        browserDetails: json_.containsKey('browserDetails')
            ? BrowserTargetingOptionDetails.fromJson(json_['browserDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        businessChainDetails: json_.containsKey('businessChainDetails')
            ? BusinessChainTargetingOptionDetails.fromJson(
                json_['businessChainDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        carrierAndIspDetails: json_.containsKey('carrierAndIspDetails')
            ? CarrierAndIspTargetingOptionDetails.fromJson(
                json_['carrierAndIspDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        categoryDetails: json_.containsKey('categoryDetails')
            ? CategoryTargetingOptionDetails.fromJson(json_['categoryDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        contentDurationDetails: json_.containsKey('contentDurationDetails')
            ? ContentDurationTargetingOptionDetails.fromJson(
                json_['contentDurationDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        contentGenreDetails: json_.containsKey('contentGenreDetails')
            ? ContentGenreTargetingOptionDetails.fromJson(
                json_['contentGenreDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        contentInstreamPositionDetails:
            json_.containsKey('contentInstreamPositionDetails')
                ? ContentInstreamPositionTargetingOptionDetails.fromJson(
                    json_['contentInstreamPositionDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        contentOutstreamPositionDetails:
            json_.containsKey('contentOutstreamPositionDetails')
                ? ContentOutstreamPositionTargetingOptionDetails.fromJson(
                    json_['contentOutstreamPositionDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        contentStreamTypeDetails:
            json_.containsKey('contentStreamTypeDetails')
                ? ContentStreamTypeTargetingOptionDetails.fromJson(
                    json_['contentStreamTypeDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        deviceMakeModelDetails: json_.containsKey('deviceMakeModelDetails')
            ? DeviceMakeModelTargetingOptionDetails.fromJson(
                json_['deviceMakeModelDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        deviceTypeDetails: json_.containsKey('deviceTypeDetails')
            ? DeviceTypeTargetingOptionDetails.fromJson(
                json_['deviceTypeDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        digitalContentLabelDetails:
            json_.containsKey('digitalContentLabelDetails')
                ? DigitalContentLabelTargetingOptionDetails.fromJson(
                    json_['digitalContentLabelDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        environmentDetails: json_.containsKey('environmentDetails')
            ? EnvironmentTargetingOptionDetails.fromJson(
                json_['environmentDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        exchangeDetails: json_.containsKey('exchangeDetails')
            ? ExchangeTargetingOptionDetails.fromJson(json_['exchangeDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        genderDetails: json_.containsKey('genderDetails')
            ? GenderTargetingOptionDetails.fromJson(
                json_['genderDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        geoRegionDetails: json_.containsKey('geoRegionDetails')
            ? GeoRegionTargetingOptionDetails.fromJson(
                json_['geoRegionDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        householdIncomeDetails: json_.containsKey('householdIncomeDetails')
            ? HouseholdIncomeTargetingOptionDetails.fromJson(
                json_['householdIncomeDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        languageDetails: json_.containsKey('languageDetails')
            ? LanguageTargetingOptionDetails.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')
                ? NativeContentPositionTargetingOptionDetails.fromJson(
                    json_['nativeContentPositionDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        omidDetails: json_.containsKey('omidDetails')
            ? OmidTargetingOptionDetails.fromJson(
                json_['omidDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        onScreenPositionDetails: json_.containsKey('onScreenPositionDetails')
            ? OnScreenPositionTargetingOptionDetails.fromJson(
                json_['onScreenPositionDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        operatingSystemDetails: json_.containsKey('operatingSystemDetails')
            ? OperatingSystemTargetingOptionDetails.fromJson(
                json_['operatingSystemDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        parentalStatusDetails: json_.containsKey('parentalStatusDetails')
            ? ParentalStatusTargetingOptionDetails.fromJson(
                json_['parentalStatusDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        poiDetails: json_.containsKey('poiDetails')
            ? PoiTargetingOptionDetails.fromJson(
                json_['poiDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        sensitiveCategoryDetails:
            json_.containsKey('sensitiveCategoryDetails')
                ? SensitiveCategoryTargetingOptionDetails.fromJson(
                    json_['sensitiveCategoryDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        subExchangeDetails: json_.containsKey('subExchangeDetails')
            ? SubExchangeTargetingOptionDetails.fromJson(
                json_['subExchangeDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        targetingOptionId: json_.containsKey('targetingOptionId')
            ? json_['targetingOptionId'] as core.String
            : null,
        targetingType: json_.containsKey('targetingType')
            ? json_['targetingType'] as core.String
            : null,
        userRewardedContentDetails:
            json_.containsKey('userRewardedContentDetails')
                ? UserRewardedContentTargetingOptionDetails.fromJson(
                    json_['userRewardedContentDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        videoPlayerSizeDetails: json_.containsKey('videoPlayerSizeDetails')
            ? VideoPlayerSizeTargetingOptionDetails.fromJson(
                json_['videoPlayerSizeDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        viewabilityDetails: json_.containsKey('viewabilityDetails')
            ? ViewabilityTargetingOptionDetails.fromJson(
                json_['viewabilityDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );