Data.fromJson(Map<String, dynamic> json) { if (json['list'] != null) { list = <CategoryList>[]; json['list'].forEach((v) { list!.add(new CategoryList.fromJson(v)); }); } }