mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-25 03:26:22 +08:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
19
lib/models/pgc/pgc_review/stat.dart
Normal file
19
lib/models/pgc/pgc_review/stat.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
class Stat {
|
||||
int? disliked;
|
||||
int? liked;
|
||||
int? likes;
|
||||
|
||||
Stat({this.disliked, this.liked, this.likes});
|
||||
|
||||
factory Stat.fromJson(Map<String, dynamic> json) => Stat(
|
||||
disliked: json['disliked'] as int?,
|
||||
liked: json['liked'] as int?,
|
||||
likes: json['likes'] as int?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'disliked': disliked,
|
||||
'liked': liked,
|
||||
'likes': likes,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user