mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-24 01:58:36 +00:00
36
lib/models_new/media_list/page.dart
Normal file
36
lib/models_new/media_list/page.dart
Normal file
@@ -0,0 +1,36 @@
|
||||
import 'package:PiliPlus/models_new/media_list/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"]),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user