Files
PiliPlus/lib/models_new/fav/fav_pgc/section.dart
My-Responsitories 5f8313901b tweaks (#1142)
* opt: unused layout

* mod: semantics

* opt: DanmakuMsg type

* opt: avoid cast

* opt: unnecessary_lambdas

* opt: use isEven

* opt: logger

* opt: invalid common page

* tweak

* opt: unify DynController
2025-08-27 12:01:53 +08:00

32 lines
780 B
Dart

import 'package:PiliPlus/utils/extension.dart';
class Section {
int? sectionId;
int? seasonId;
int? limitGroup;
int? watchPlatform;
String? copyright;
int? banAreaShow;
List<int>? episodeIds;
Section({
this.sectionId,
this.seasonId,
this.limitGroup,
this.watchPlatform,
this.copyright,
this.banAreaShow,
this.episodeIds,
});
factory Section.fromJson(Map<String, dynamic> json) => Section(
sectionId: json['section_id'] as int?,
seasonId: json['season_id'] as int?,
limitGroup: json['limit_group'] as int?,
watchPlatform: json['watch_platform'] as int?,
copyright: json['copyright'] as String?,
banAreaShow: json['ban_area_show'] as int?,
episodeIds: (json['episode_ids'] as List?)?.fromCast(),
);
}