CriteriaTargeting.fromJson constructor

CriteriaTargeting.fromJson(
  1. Map json_
)

Implementation

CriteriaTargeting.fromJson(core.Map json_)
    : this(
        excludedCriteriaIds: json_.containsKey('excludedCriteriaIds')
            ? (json_['excludedCriteriaIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        targetedCriteriaIds: json_.containsKey('targetedCriteriaIds')
            ? (json_['targetedCriteriaIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );