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