LuckIntroModel.fromJson constructor
Implementation
LuckIntroModel.fromJson(Map<String,dynamic> json) {
if (json["ruleList"] != null){
ruleList = List<String>.empty(growable: true);
json['ruleList'].forEach((v) {
ruleList.add(v);
});
}
if (json["giftInfo"] != null){
giftInfo = List<ItemIntro>.empty(growable: true);
json['giftInfo'].forEach((v) {
giftInfo.add(ItemIntro.fromJson(v));
});
}
}