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((value) => AdSize.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        targetedInventorySizes: json_.containsKey('targetedInventorySizes')
            ? (json_['targetedInventorySizes'] as core.List)
                .map((value) => AdSize.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );