mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-25 04:45:54 +08:00
feat: new pgc rank
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
22
lib/models/bangumi/pgc_rank/stat.dart
Normal file
22
lib/models/bangumi/pgc_rank/stat.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
class Stat {
|
||||
int? danmaku;
|
||||
int? follow;
|
||||
int? seriesFollow;
|
||||
int? view;
|
||||
|
||||
Stat({this.danmaku, this.follow, this.seriesFollow, this.view});
|
||||
|
||||
factory Stat.fromJson(Map<String, dynamic> json) => Stat(
|
||||
danmaku: json['danmaku'] as int?,
|
||||
follow: (json['follow'] as int?) ?? 0,
|
||||
seriesFollow: json['series_follow'] as int?,
|
||||
view: (json['view'] as int?) ?? 0,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'danmaku': danmaku,
|
||||
'follow': follow,
|
||||
'series_follow': seriesFollow,
|
||||
'view': view,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user