mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -8,12 +8,12 @@ import 'order.dart';
|
||||
part 'data.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Data {
|
||||
class SpaceArchiveData {
|
||||
@JsonKey(name: 'episodic_button')
|
||||
EpisodicButton? episodicButton;
|
||||
List<Order>? order;
|
||||
int? count;
|
||||
List<Item>? item;
|
||||
List<SpaceArchiveItem>? item;
|
||||
@JsonKey(name: 'last_watched_locator')
|
||||
LastWatchedLocator? lastWatchedLocator;
|
||||
@JsonKey(name: 'has_next')
|
||||
@@ -22,7 +22,7 @@ class Data {
|
||||
bool? hasPrev;
|
||||
int? next;
|
||||
|
||||
Data({
|
||||
SpaceArchiveData({
|
||||
this.episodicButton,
|
||||
this.order,
|
||||
this.count,
|
||||
@@ -33,7 +33,8 @@ class Data {
|
||||
this.next,
|
||||
});
|
||||
|
||||
factory Data.fromJson(Map<String, dynamic> json) => _$DataFromJson(json);
|
||||
factory SpaceArchiveData.fromJson(Map<String, dynamic> json) =>
|
||||
_$DataFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$DataToJson(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user