opt handle res

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-29 17:17:35 +08:00
parent b643cb1bd0
commit 924d51d41b
198 changed files with 3715 additions and 2001 deletions

View File

@@ -0,0 +1,45 @@
import 'package:PiliPlus/models/video_detail/dimension.dart';
class Part {
int? cid;
int? page;
String? from;
String? pagePart;
int? duration;
String? vid;
String? weblink;
Dimension? dimension;
int? ctime;
String? firstFrame;
String? badge;
Part({
this.cid,
this.page,
this.from,
this.pagePart,
this.duration,
this.vid,
this.weblink,
this.dimension,
this.ctime,
this.firstFrame,
this.badge,
});
factory Part.fromJson(Map<String, dynamic> json) => Part(
cid: json['cid'] as int?,
page: json['page'] as int?,
from: json['from'] as String?,
pagePart: json['part'] as String?,
duration: json['duration'] as int?,
vid: json['vid'] as String?,
weblink: json['weblink'] as String?,
dimension: json['dimension'] == null
? null
: Dimension.fromJson(json['dimension'] as Map<String, dynamic>),
ctime: json['ctime'] as int?,
firstFrame: json['first_frame'] as String?,
badge: json["badge"],
);
}