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

@@ -1,5 +1,3 @@
import 'package:PiliPlus/models_new/space/space/badge.dart';
class Item {
String? title;
String? subtitle;
@@ -24,7 +22,6 @@ class Item {
int? danmaku;
int? ctime;
int? ugcPay;
List<Badge>? badges;
String? author;
bool? state;
String? bvid;
@@ -58,7 +55,6 @@ class Item {
this.danmaku,
this.ctime,
this.ugcPay,
this.badges,
this.author,
this.state,
this.bvid,
@@ -93,9 +89,6 @@ class Item {
danmaku: json['danmaku'] as int?,
ctime: json['ctime'] as int?,
ugcPay: json['ugc_pay'] as int?,
badges: (json['badges'] as List<dynamic>?)
?.map((e) => Badge.fromJson(e as Map<String, dynamic>))
.toList(),
author: json['author'] as String?,
state: json['state'] as bool?,
bvid: json['bvid'] as String?,