mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 19:14:42 +08:00
17
lib/models_new/pgc/pgc_review/data.dart
Normal file
17
lib/models_new/pgc/pgc_review/data.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_review/list.dart';
|
||||
|
||||
class PgcReviewData {
|
||||
List<PgcReviewItemModel>? list;
|
||||
String? next;
|
||||
int? count;
|
||||
|
||||
PgcReviewData({this.list, this.next, this.count});
|
||||
|
||||
factory PgcReviewData.fromJson(Map<String, dynamic> json) => PgcReviewData(
|
||||
list: (json['list'] as List<dynamic>?)
|
||||
?.map((e) => PgcReviewItemModel.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
next: json['next'] as String?,
|
||||
count: json['count'] ?? json['total'],
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user