mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
16 lines
415 B
Dart
16 lines
415 B
Dart
import 'package:PiliPlus/models_new/fav/fav_pgc/list.dart';
|
|
|
|
class FavPgcData {
|
|
List<FavPgcItemModel>? list;
|
|
int? total;
|
|
|
|
FavPgcData({this.list, 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(),
|
|
total: json['total'] as int?,
|
|
);
|
|
}
|