Campaigns.fromJson constructor
Implementation
Campaigns.fromJson(Map<String, Object> json) {
visitorId = json['visitorId'] as String;
// panic = json['panic']
var list = json['campaigns'] as List<dynamic>;
campaigns = list.map((e) {
return Campaign.fromJson(e);
}).toList();
}