mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-19 07:34:04 +08:00
@@ -1,29 +1,17 @@
|
||||
import 'package:PiliPlus/models_new/video/video_detail/episode.dart';
|
||||
|
||||
class Choice extends BaseEpisodeItem {
|
||||
String? platformAction;
|
||||
String? nativeAction;
|
||||
String? condition;
|
||||
String? option;
|
||||
int? isDefault;
|
||||
|
||||
Choice({
|
||||
super.id,
|
||||
this.platformAction,
|
||||
this.nativeAction,
|
||||
this.condition,
|
||||
super.cid,
|
||||
this.option,
|
||||
this.isDefault,
|
||||
});
|
||||
|
||||
factory Choice.fromJson(Map<String, dynamic> json) => Choice(
|
||||
id: json['id'] as int?,
|
||||
platformAction: json['platform_action'] as String?,
|
||||
nativeAction: json['native_action'] as String?,
|
||||
condition: json['condition'] as String?,
|
||||
cid: json['cid'] as int?,
|
||||
option: json['option'] as String?,
|
||||
isDefault: json['is_default'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user