MarketplaceTargeting.fromJson constructor

MarketplaceTargeting.fromJson(
  1. Map _json
)

Implementation

MarketplaceTargeting.fromJson(core.Map _json)
    : this(
        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,
        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,
        videoTargeting: _json.containsKey('videoTargeting')
            ? VideoTargeting.fromJson(_json['videoTargeting']
                as core.Map<core.String, core.dynamic>)
            : null,
      );