mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
39 lines
753 B
Dart
39 lines
753 B
Dart
class Stat {
|
|
num? coins;
|
|
int? danmakus;
|
|
int? favorite;
|
|
int? favorites;
|
|
String? followText;
|
|
int? likes;
|
|
int? reply;
|
|
int? share;
|
|
int? views;
|
|
int? vt;
|
|
|
|
Stat({
|
|
this.coins,
|
|
this.danmakus,
|
|
this.favorite,
|
|
this.favorites,
|
|
this.followText,
|
|
this.likes,
|
|
this.reply,
|
|
this.share,
|
|
this.views,
|
|
this.vt,
|
|
});
|
|
|
|
factory Stat.fromJson(Map<String, dynamic> json) => Stat(
|
|
coins: json["coins"],
|
|
danmakus: json["danmakus"],
|
|
favorite: json["favorite"],
|
|
favorites: json["favorites"],
|
|
followText: json["follow_text"],
|
|
likes: json["likes"],
|
|
reply: json["reply"],
|
|
share: json["share"],
|
|
views: json["views"],
|
|
vt: json["vt"],
|
|
);
|
|
}
|