mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
22
lib/models/video_detail/section.dart
Normal file
22
lib/models/video_detail/section.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
import 'package:PiliPlus/models/video_detail/episode.dart';
|
||||
|
||||
class SectionItem {
|
||||
int? seasonId;
|
||||
int? id;
|
||||
String? title;
|
||||
int? type;
|
||||
List<EpisodeItem>? episodes;
|
||||
bool isReversed = false;
|
||||
|
||||
SectionItem({this.seasonId, this.id, this.title, this.type, this.episodes});
|
||||
|
||||
factory SectionItem.fromJson(Map<String, dynamic> json) => SectionItem(
|
||||
seasonId: json['season_id'] as int?,
|
||||
id: json['id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
type: json['type'] as int?,
|
||||
episodes: (json['episodes'] as List<dynamic>?)
|
||||
?.map((e) => EpisodeItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user