Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

@@ -5,7 +5,7 @@ class AllSortBy {
AllSortBy({this.sortBy, this.sortName});
factory AllSortBy.fromJson(Map<String, dynamic> json) => AllSortBy(
sortBy: json['sort_by'] as int?,
sortName: json['sort_name'] as String?,
);
sortBy: json['sort_by'] as int?,
sortName: json['sort_name'] as String?,
);
}

View File

@@ -7,10 +7,11 @@ class TopicCardItem {
TopicCardItem({this.dynamicCardItem, this.topicType});
factory TopicCardItem.fromJson(Map<String, dynamic> json) => TopicCardItem(
dynamicCardItem: json['dynamic_card_item'] == null
? null
: DynamicItemModel.fromJson(
json['dynamic_card_item'] as Map<String, dynamic>),
topicType: json['topic_type'] as String?,
);
dynamicCardItem: json['dynamic_card_item'] == null
? null
: DynamicItemModel.fromJson(
json['dynamic_card_item'] as Map<String, dynamic>,
),
topicType: json['topic_type'] as String?,
);
}

View File

@@ -15,14 +15,15 @@ class TopicCardList {
});
factory TopicCardList.fromJson(Map<String, dynamic> json) => TopicCardList(
hasMore: json['has_more'] as bool?,
items: (json['items'] as List<dynamic>?)
?.map((e) => TopicCardItem.fromJson(e as Map<String, dynamic>))
.toList(),
offset: json['offset'] as String?,
topicSortByConf: json['topic_sort_by_conf'] == null
? null
: TopicSortByConf.fromJson(
json['topic_sort_by_conf'] as Map<String, dynamic>),
);
hasMore: json['has_more'] as bool?,
items: (json['items'] as List<dynamic>?)
?.map((e) => TopicCardItem.fromJson(e as Map<String, dynamic>))
.toList(),
offset: json['offset'] as String?,
topicSortByConf: json['topic_sort_by_conf'] == null
? null
: TopicSortByConf.fromJson(
json['topic_sort_by_conf'] as Map<String, dynamic>,
),
);
}