Files
PiliPlus/lib/models_new/media_list/page.dart
dom b9b54ce4f7 tweaks
Signed-off-by: dom <githubaccount56556@proton.me>
2026-01-23 13:08:32 +08:00

37 lines
711 B
Dart

import 'package:PiliPlus/models_new/video/video_detail/dimension.dart';
class Page {
int? id;
String? title;
String? intro;
int? duration;
String? link;
int? page;
String? from;
Dimension? dimension;
Page({
this.id,
this.title,
this.intro,
this.duration,
this.link,
this.page,
this.from,
this.dimension,
});
factory Page.fromJson(Map<String, dynamic> json) => Page(
id: json["id"],
title: json["title"],
intro: json["intro"],
duration: json["duration"],
link: json["link"],
page: json["page"],
from: json["from"],
dimension: json["dimension"] == null
? null
: Dimension.fromJson(json["dimension"]),
);
}