mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 02:56:58 +08:00
opt pub page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
48
lib/models_new/dynamic/dyn_reserve_info/data.dart
Normal file
48
lib/models_new/dynamic/dyn_reserve_info/data.dart
Normal file
@@ -0,0 +1,48 @@
|
||||
class ReserveInfoData {
|
||||
int? id;
|
||||
String? title;
|
||||
int? stime;
|
||||
int? etime;
|
||||
int? type;
|
||||
int? livePlanStartTime;
|
||||
int? lotteryType;
|
||||
String? lotteryId;
|
||||
int? subType;
|
||||
|
||||
ReserveInfoData({
|
||||
this.id,
|
||||
this.title,
|
||||
this.stime,
|
||||
this.etime,
|
||||
this.type,
|
||||
this.livePlanStartTime,
|
||||
this.lotteryType,
|
||||
this.lotteryId,
|
||||
this.subType,
|
||||
});
|
||||
|
||||
factory ReserveInfoData.fromJson(Map<String, dynamic> json) =>
|
||||
ReserveInfoData(
|
||||
id: json['id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
stime: json['stime'] as int?,
|
||||
etime: json['etime'] as int?,
|
||||
type: json['type'] as int?,
|
||||
livePlanStartTime: json['live_plan_start_time'] as int?,
|
||||
lotteryType: json['lottery_type'] as int?,
|
||||
lotteryId: json['lottery_id'] as String?,
|
||||
subType: json['sub_type'] as int?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'id': id,
|
||||
'title': title,
|
||||
'stime': stime,
|
||||
'etime': etime,
|
||||
'type': type,
|
||||
'live_plan_start_time': livePlanStartTime,
|
||||
'lottery_type': lotteryType,
|
||||
'lottery_id': lotteryId,
|
||||
'sub_type': subType,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user