Files
PiliPlus/lib/models/pgc/pgc_rank/stat.dart
bggRGjQaUbCoE fd55383778 opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-05-25 11:45:20 +08:00

23 lines
565 B
Dart

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,
};
}