show search rcmd reason

Closes #921

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-01 18:32:55 +08:00
parent 53ef4219eb
commit 05bb27ee2b
3 changed files with 14 additions and 1 deletions

View File

@@ -3,12 +3,14 @@ class SearchTrendingItemModel {
String? showName;
String? icon;
bool? showLiveIcon;
String? recommendReason;
SearchTrendingItemModel({
this.keyword,
this.showName,
this.icon,
this.showLiveIcon,
this.recommendReason,
});
factory SearchTrendingItemModel.fromJson(Map<String, dynamic> json) =>
@@ -17,5 +19,9 @@ class SearchTrendingItemModel {
showName: json['show_name'] as String?,
icon: json['icon'] as String?,
showLiveIcon: json['show_live_icon'] as bool?,
recommendReason: (json['recommend_reason'] as String?)?.replaceFirst(
'·',
' ',
),
);
}