Files
PiliPlus/lib/models/search/suggest.dart
bggRGjQaUbCoE b960359a39 opt models
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-06-05 14:44:56 +08:00

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'];
}
}