show dyn interaction

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-26 22:44:26 +08:00
parent 25fca498fc
commit eea232c6db
3 changed files with 123 additions and 0 deletions

View File

@@ -167,6 +167,7 @@ class ItemModulesModel {
List<ArticleContentModel>? moduleContent;
ModuleBlocked? moduleBlocked;
ModuleFold? moduleFold;
ModuleInteraction? moduleInteraction;
ItemModulesModel.fromJson(Map<String, dynamic> json) {
moduleAuthor = json['module_author'] != null
@@ -184,6 +185,9 @@ class ItemModulesModel {
moduleFold = json['module_fold'] != null
? ModuleFold.fromJson(json['module_fold'])
: null;
moduleInteraction = json['module_interaction'] != null
? ModuleInteraction.fromJson(json['module_interaction'])
: null;
}
ItemModulesModel.fromOpusJson(List json) {
@@ -234,6 +238,28 @@ class ItemModulesModel {
}
}
class ModuleInteraction {
List<ModuleInteractionItem>? items;
ModuleInteraction.fromJson(Map<String, dynamic> json) {
items = (json['items'] as List?)
?.map((e) => ModuleInteractionItem.fromJson(e))
.toList();
}
}
class ModuleInteractionItem {
int? type;
DynamicDescModel? desc;
ModuleInteractionItem.fromJson(Map<String, dynamic> json) {
type = json['type'];
desc = json["desc"] == null
? null
: DynamicDescModel.fromJson(json["desc"]);
}
}
class ModuleFold {
List<String>? ids;
String? statement;