You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
486 B

11 months ago
class SearchBean {
int? code;
String? msg;
List<DataBean>? data;
SearchBean.formMap(Map map) {
code = map['code'];
msg = map['msg'];
if (map['data'] == null) return;
List<dynamic>? dataList = map['data'];
if (dataList == null) return;
data = dataList
.map((item) => DataBean._formMap(item))
.toList();
}
}
class DataBean {
int? id;
String? name;
DataBean._formMap(Map map) {
id = map['id'];
name = map['name'];
}
}