Files
PiliPlus/lib/models/pgc/pgc_review/data.dart
bggRGjQaUbCoE b674d102e3 pgc review sort
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-05-25 15:38:22 +08:00

18 lines
527 B
Dart

import 'package:PiliPlus/models/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'],
);
}