mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
Refactor member page (#3)
* refactor: member page * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
This commit is contained in:
39
lib/models/space_archive/data.dart
Normal file
39
lib/models/space_archive/data.dart
Normal file
@@ -0,0 +1,39 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
import 'episodic_button.dart';
|
||||
import 'item.dart';
|
||||
import 'last_watched_locator.dart';
|
||||
import 'order.dart';
|
||||
|
||||
part 'data.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Data {
|
||||
@JsonKey(name: 'episodic_button')
|
||||
EpisodicButton? episodicButton;
|
||||
List<Order>? order;
|
||||
int? count;
|
||||
List<Item>? item;
|
||||
@JsonKey(name: 'last_watched_locator')
|
||||
LastWatchedLocator? lastWatchedLocator;
|
||||
@JsonKey(name: 'has_next')
|
||||
bool? hasNext;
|
||||
@JsonKey(name: 'has_prev')
|
||||
bool? hasPrev;
|
||||
int? next;
|
||||
|
||||
Data({
|
||||
this.episodicButton,
|
||||
this.order,
|
||||
this.count,
|
||||
this.item,
|
||||
this.lastWatchedLocator,
|
||||
this.hasNext,
|
||||
this.hasPrev,
|
||||
this.next,
|
||||
});
|
||||
|
||||
factory Data.fromJson(Map<String, dynamic> json) => _$DataFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$DataToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user