clean up models

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-05 12:10:18 +08:00
parent b897103af0
commit 279f21857d
308 changed files with 156 additions and 6243 deletions

View File

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