mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 02:56:58 +08:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
28
lib/models/video_pbp/data.dart
Normal file
28
lib/models/video_pbp/data.dart
Normal file
@@ -0,0 +1,28 @@
|
||||
class PbpData {
|
||||
int? stepSec;
|
||||
Events? events;
|
||||
|
||||
PbpData({
|
||||
this.stepSec,
|
||||
this.events,
|
||||
});
|
||||
|
||||
factory PbpData.fromJson(Map<String, dynamic> json) => PbpData(
|
||||
stepSec: json["step_sec"],
|
||||
events: json["events"] == null ? null : Events.fromJson(json["events"]),
|
||||
);
|
||||
}
|
||||
|
||||
class Events {
|
||||
List<double>? eDefault;
|
||||
|
||||
Events({
|
||||
this.eDefault,
|
||||
});
|
||||
|
||||
factory Events.fromJson(Map<String, dynamic> json) => Events(
|
||||
eDefault: json["default"] == null
|
||||
? null
|
||||
: List<double>.from(json["default"]!.map((x) => x?.toDouble())),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user