Targeting.fromJson constructor

Targeting.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Targeting.fromJson(Map<String, dynamic> json) {
  var list = (json['targetingGroups'] ?? []) as List<dynamic>;
  targetingGroups = list.map((e) {
    return TargetingGroup.fromJson(e);
  }).toList();
}