mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 00:56:31 +08:00
18 lines
497 B
Dart
18 lines
497 B
Dart
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?,
|
|
);
|
|
}
|