mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 11:22:16 +08:00
11
lib/models_new/pgc/pgc_info_model/rating.dart
Normal file
11
lib/models_new/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