import 'package:PiliPlus/models/pgc/pgc_review/list.dart'; class PgcReviewData { List? list; String? next; int? count; PgcReviewData({this.list, this.next, this.count}); factory PgcReviewData.fromJson(Map json) => PgcReviewData( list: (json['list'] as List?) ?.map((e) => PgcReviewItemModel.fromJson(e as Map)) .toList(), next: json['next'] as String?, count: json['count'] ?? json['total'], ); }