mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 04:00:28 +08:00
feat: member cheese
feat: fav pugv Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
19
lib/models_new/space/space_cheese/data.dart
Normal file
19
lib/models_new/space/space_cheese/data.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
import 'package:PiliPlus/models_new/space/space_cheese/item.dart';
|
||||
import 'package:PiliPlus/models_new/space/space_cheese/page.dart';
|
||||
|
||||
class SpaceCheeseData {
|
||||
List<SpaceCheeseItem>? items;
|
||||
SpaceCheesePage? page;
|
||||
|
||||
SpaceCheeseData({this.items, this.page});
|
||||
|
||||
factory SpaceCheeseData.fromJson(Map<String, dynamic> json) =>
|
||||
SpaceCheeseData(
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map((e) => SpaceCheeseItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
page: json['page'] == null
|
||||
? null
|
||||
: SpaceCheesePage.fromJson(json['page'] as Map<String, dynamic>),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user