Files
pilipala/lib/models/search/hot.dart
2024-12-08 23:50:36 +08:00

36 lines
673 B
Dart

class HotSearchModel {
HotSearchModel({
this.list,
});
List<HotSearchItem>? list;
HotSearchModel.fromJson(Map<String, dynamic> json) {
list = json['list']
.map<HotSearchItem>((e) => HotSearchItem.fromJson(e))
.toList();
}
}
class HotSearchItem {
HotSearchItem({
this.keyword,
this.showName,
this.wordType,
this.icon,
});
String? keyword;
String? showName;
// 4/5热 11话题 8普通 7直播
int? wordType;
String? icon;
HotSearchItem.fromJson(Map<String, dynamic> json) {
keyword = json['keyword'];
showName = json['show_name'];
wordType = json['word_type'];
icon = json['icon'];
}
}