refa: ugc intro

Closes #879

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-22 17:15:40 +08:00
parent a4a866d3f5
commit a875ff3988
15 changed files with 563 additions and 639 deletions

View File

@@ -0,0 +1,31 @@
import 'package:PiliPlus/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) =>
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?,
);
}