mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 08:38:37 +00:00
@@ -1,15 +1,11 @@
|
||||
class Stat {
|
||||
int? danmaku;
|
||||
int? follow;
|
||||
int? seriesFollow;
|
||||
int? view;
|
||||
|
||||
Stat({this.danmaku, this.follow, this.seriesFollow, this.view});
|
||||
Stat({this.follow, 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,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user