mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 08:36:17 +08:00
24 lines
478 B
Dart
24 lines
478 B
Dart
class SearchSuggestModel {
|
|
SearchSuggestModel({
|
|
this.tag,
|
|
});
|
|
|
|
List<SearchSuggestItem>? tag;
|
|
|
|
SearchSuggestModel.fromJson(Map<String, dynamic> json) {
|
|
tag = (json['tag'] as List?)
|
|
?.map<SearchSuggestItem>((e) => SearchSuggestItem.fromJson(e))
|
|
.toList();
|
|
}
|
|
}
|
|
|
|
class SearchSuggestItem {
|
|
String? term;
|
|
late String textRich;
|
|
|
|
SearchSuggestItem.fromJson(Map<String, dynamic> json) {
|
|
term = json['term'];
|
|
textRich = json['name'];
|
|
}
|
|
}
|