TargetingCriteria.fromJson constructor
TargetingCriteria.fromJson(
- Map _json
Implementation
TargetingCriteria.fromJson(core.Map _json)
: this(
exclusions: _json.containsKey('exclusions')
? (_json['exclusions'] as core.List)
.map((value) => TargetingValue.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
inclusions: _json.containsKey('inclusions')
? (_json['inclusions'] as core.List)
.map((value) => TargetingValue.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
key: _json.containsKey('key') ? _json['key'] as core.String : null,
);