opt models

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-04 15:20:35 +08:00
parent f50b1d2beb
commit b960359a39
858 changed files with 11000 additions and 12588 deletions

View File

@@ -0,0 +1,28 @@
class SegmentItemModel {
String cid;
String category;
String actionType;
List<int> segment;
String uuid;
double videoDuration;
SegmentItemModel({
required this.cid,
required this.category,
required this.actionType,
required this.segment,
required this.uuid,
required this.videoDuration,
});
factory SegmentItemModel.fromJson(Map<String, dynamic> json) =>
SegmentItemModel(
cid: json["cid"],
category: json["category"],
actionType: json["actionType"],
segment:
(json["segment"] as List).map((e) => (e as num).round()).toList(),
uuid: json["UUID"],
videoDuration: (json["videoDuration"] as num).toDouble(),
);
}