mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 19:28:27 +08:00
11
lib/models_new/fav/fav_pgc/rating.dart
Normal file
11
lib/models_new/fav/fav_pgc/rating.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
class Rating {
|
||||
double? score;
|
||||
int? count;
|
||||
|
||||
Rating({this.score, this.count});
|
||||
|
||||
factory Rating.fromJson(Map<String, dynamic> json) => Rating(
|
||||
score: (json['score'] as num?)?.toDouble(),
|
||||
count: json['count'] as int?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user