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

@@ -9,11 +9,11 @@ class SpaceOpusData {
SpaceOpusData({this.hasMore, this.items, this.offset, this.updateNum});
factory SpaceOpusData.fromJson(Map<String, dynamic> json) => SpaceOpusData(
hasMore: json['has_more'] as bool?,
items: (json['items'] as List<dynamic>?)
?.map((e) => SpaceOpusItemModel.fromJson(e as Map<String, dynamic>))
.toList(),
offset: json['offset'] as String?,
updateNum: json['update_num'] as int?,
);
hasMore: json['has_more'] as bool?,
items: (json['items'] as List<dynamic>?)
?.map((e) => SpaceOpusItemModel.fromJson(e as Map<String, dynamic>))
.toList(),
offset: json['offset'] as String?,
updateNum: json['update_num'] as int?,
);
}

View File

@@ -8,8 +8,13 @@ class SpaceOpusItemModel {
Stat? stat;
Cover? cover;
SpaceOpusItemModel(
{this.content, this.jumpUrl, this.opusId, this.stat, this.cover});
SpaceOpusItemModel({
this.content,
this.jumpUrl,
this.opusId,
this.stat,
this.cover,
});
factory SpaceOpusItemModel.fromJson(Map<String, dynamic> json) =>
SpaceOpusItemModel(

View File

@@ -4,6 +4,6 @@ class Stat {
Stat({this.like});
factory Stat.fromJson(Map<String, dynamic> json) => Stat(
like: json['like'] as String?,
);
like: json['like'] as String?,
);
}