mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 11:06:51 +08:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
11
lib/models/pgc/pgc_info_model/rating.dart
Normal file
11
lib/models/pgc/pgc_info_model/rating.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
class Rating {
|
||||
int? count;
|
||||
double? score;
|
||||
|
||||
Rating({this.count, this.score});
|
||||
|
||||
factory Rating.fromJson(Map<String, dynamic> json) => Rating(
|
||||
count: json['count'] as int?,
|
||||
score: (json['score'] as num?)?.toDouble(),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user