MarketplaceTargeting.fromJson constructor

MarketplaceTargeting.fromJson(
  1. Map json_
)

Implementation

MarketplaceTargeting.fromJson(core.Map json_)
    : this(
        daypartTargeting: json_.containsKey('daypartTargeting')
            ? DayPartTargeting.fromJson(json_['daypartTargeting']
                as core.Map<core.String, core.dynamic>)
            : null,
        geoTargeting: json_.containsKey('geoTargeting')
            ? CriteriaTargeting.fromJson(
                json_['geoTargeting'] as core.Map<core.String, core.dynamic>)
            : null,
        inventorySizeTargeting: json_.containsKey('inventorySizeTargeting')
            ? InventorySizeTargeting.fromJson(json_['inventorySizeTargeting']
                as core.Map<core.String, core.dynamic>)
            : null,
        inventoryTypeTargeting: json_.containsKey('inventoryTypeTargeting')
            ? InventoryTypeTargeting.fromJson(json_['inventoryTypeTargeting']
                as core.Map<core.String, core.dynamic>)
            : null,
        placementTargeting: json_.containsKey('placementTargeting')
            ? PlacementTargeting.fromJson(json_['placementTargeting']
                as core.Map<core.String, core.dynamic>)
            : null,
        technologyTargeting: json_.containsKey('technologyTargeting')
            ? TechnologyTargeting.fromJson(json_['technologyTargeting']
                as core.Map<core.String, core.dynamic>)
            : null,
        userListTargeting: json_.containsKey('userListTargeting')
            ? CriteriaTargeting.fromJson(json_['userListTargeting']
                as core.Map<core.String, core.dynamic>)
            : null,
        videoTargeting: json_.containsKey('videoTargeting')
            ? VideoTargeting.fromJson(json_['videoTargeting']
                as core.Map<core.String, core.dynamic>)
            : null,
      );