TargetingGroup.fromJson constructor

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

Implementation

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