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

@@ -10,8 +10,13 @@ class ArticleListData {
Last? last;
bool? attention;
ArticleListData(
{this.list, this.articles, this.author, this.last, this.attention});
ArticleListData({
this.list,
this.articles,
this.author,
this.last,
this.attention,
});
factory ArticleListData.fromJson(Map<String, dynamic> json) =>
ArticleListData(
@@ -20,7 +25,8 @@ class ArticleListData {
: ArticleListInfo.fromJson(json['list'] as Map<String, dynamic>),
articles: (json['articles'] as List<dynamic>?)
?.map(
(e) => ArticleListItemModel.fromJson(e as Map<String, dynamic>))
(e) => ArticleListItemModel.fromJson(e as Map<String, dynamic>),
)
.toList(),
author: json['author'] == null
? null