mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
44 lines
912 B
Dart
44 lines
912 B
Dart
class Stats {
|
|
int? view;
|
|
int? favorite;
|
|
int? like;
|
|
int? dislike;
|
|
int? reply;
|
|
int? share;
|
|
int? coin;
|
|
int? dynam1c;
|
|
|
|
Stats({
|
|
this.view,
|
|
this.favorite,
|
|
this.like,
|
|
this.dislike,
|
|
this.reply,
|
|
this.share,
|
|
this.coin,
|
|
this.dynam1c,
|
|
});
|
|
|
|
factory Stats.fromJson(Map<String, dynamic> json) => Stats(
|
|
view: json['view'] as int?,
|
|
favorite: json['favorite'] as int?,
|
|
like: json['like'] as int?,
|
|
dislike: json['dislike'] as int?,
|
|
reply: json['reply'] as int?,
|
|
share: json['share'] as int?,
|
|
coin: json['coin'] as int?,
|
|
dynam1c: json['dynamic'] as int?,
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'view': view,
|
|
'favorite': favorite,
|
|
'like': like,
|
|
'dislike': dislike,
|
|
'reply': reply,
|
|
'share': share,
|
|
'coin': coin,
|
|
'dynamic': dynam1c,
|
|
};
|
|
}
|