mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 03:15:14 +08:00
17
lib/models_new/fav/fav_folder/data.dart
Normal file
17
lib/models_new/fav/fav_folder/data.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'package:PiliPlus/models_new/fav/fav_folder/list.dart';
|
||||
|
||||
class FavFolderData {
|
||||
int? count;
|
||||
List<FavFolderInfo>? list;
|
||||
bool? hasMore;
|
||||
|
||||
FavFolderData({this.count, this.list, this.hasMore});
|
||||
|
||||
factory FavFolderData.fromJson(Map<String, dynamic> json) => FavFolderData(
|
||||
count: json['count'] as int?,
|
||||
list: (json['list'] as List<dynamic>?)
|
||||
?.map((e) => FavFolderInfo.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
hasMore: json['has_more'] as bool?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user