InventorySizeTargeting.fromJson constructor

InventorySizeTargeting.fromJson(
  1. Map _json
)

Implementation

InventorySizeTargeting.fromJson(core.Map _json)
    : this(
        excludedInventorySizes: _json.containsKey('excludedInventorySizes')
            ? (_json['excludedInventorySizes'] as core.List)
                .map<AdSize>((value) => AdSize.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        targetedInventorySizes: _json.containsKey('targetedInventorySizes')
            ? (_json['targetedInventorySizes'] as core.List)
                .map<AdSize>((value) => AdSize.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );