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,8 +4,6 @@ class Card {
String? mid;
String? name;
String? face;
int? fans;
int? attention;
BaseOfficialVerify? official;
Vip? vip;
@@ -13,8 +11,6 @@ class Card {
this.mid,
this.name,
this.face,
this.fans,
this.attention,
this.official,
this.vip,
});
@@ -23,8 +19,6 @@ class Card {
mid: json['mid'] as String?,
name: json['name'] as String?,
face: json['face'] as String?,
fans: json['fans'] as int?,
attention: json['attention'] as int?,
official: json['Official'] == null
? null
: BaseOfficialVerify.fromJson(

View File

@@ -2,19 +2,13 @@ import 'package:PiliPlus/models_new/member_card_info/card.dart';
class MemberCardInfoData {
Card? card;
bool? following;
int? archiveCount;
int? articleCount;
int? follower;
int? likeNum;
MemberCardInfoData({
this.card,
this.following,
this.archiveCount,
this.articleCount,
this.follower,
this.likeNum,
});
factory MemberCardInfoData.fromJson(Map<String, dynamic> json) =>
@@ -22,10 +16,7 @@ class MemberCardInfoData {
card: json['card'] == null
? null
: Card.fromJson(json['card'] as Map<String, dynamic>),
following: json['following'] as bool?,
archiveCount: json['archive_count'] as int?,
articleCount: json['article_count'] as int?,
follower: json['follower'] as int?,
likeNum: json['like_num'] as int?,
);
}