mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
@@ -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(
|
||||
|
||||
@@ -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?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user