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<core.String>((value) => value as core.String)
                .toList()
            : null,
        targetedCriteriaIds: _json.containsKey('targetedCriteriaIds')
            ? (_json['targetedCriteriaIds'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
      );