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

@@ -3,35 +3,22 @@ import 'package:PiliPlus/models/model_avatar.dart';
class FollowItemModel extends UpItem {
int? attribute;
int? mtime;
dynamic tag;
int? special;
String? sign;
BaseOfficialVerify? officialVerify;
Vip? vip;
String? followTime;
FollowItemModel({
required super.mid,
this.attribute,
this.mtime,
this.tag,
this.special,
super.uname,
super.face,
this.sign,
this.officialVerify,
this.vip,
this.followTime,
});
factory FollowItemModel.fromJson(Map<String, dynamic> json) =>
FollowItemModel(
mid: json['mid'] as int? ?? 0,
attribute: json['attribute'] as int?,
mtime: json['mtime'] as int?,
tag: json['tag'] as dynamic,
special: json['special'] as int?,
uname: json['uname'] as String?,
face: json['face'] as String?,
sign: json['sign'] as String?,
@@ -40,9 +27,5 @@ class FollowItemModel extends UpItem {
: BaseOfficialVerify.fromJson(
json['official_verify'] as Map<String, dynamic>,
),
vip: json['vip'] == null
? null
: Vip.fromJson(json['vip'] as Map<String, dynamic>),
followTime: json['follow_time'] as String?,
);
}