mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 18:46:53 +08:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
36
lib/models/pgc/pgc_info_model/section.dart
Normal file
36
lib/models/pgc/pgc_info_model/section.dart
Normal file
@@ -0,0 +1,36 @@
|
||||
import 'package:PiliPlus/models/pgc/pgc_info_model/episode.dart';
|
||||
|
||||
class Section {
|
||||
int? attr;
|
||||
int? episodeId;
|
||||
List<dynamic>? episodeIds;
|
||||
List<EpisodeItem>? episodes;
|
||||
int? id;
|
||||
String? title;
|
||||
int? type;
|
||||
int? type2;
|
||||
|
||||
Section({
|
||||
this.attr,
|
||||
this.episodeId,
|
||||
this.episodeIds,
|
||||
this.episodes,
|
||||
this.id,
|
||||
this.title,
|
||||
this.type,
|
||||
this.type2,
|
||||
});
|
||||
|
||||
factory Section.fromJson(Map<String, dynamic> json) => Section(
|
||||
attr: json['attr'] as int?,
|
||||
episodeId: json['episode_id'] as int?,
|
||||
episodeIds: json['episode_ids'] as List<dynamic>?,
|
||||
episodes: (json['episodes'] as List<dynamic>?)
|
||||
?.map((e) => EpisodeItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
id: json['id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
type: json['type'] as int?,
|
||||
type2: json['type2'] as int?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user