mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-22 18:16:54 +08:00
refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
17
lib/models/dynamics/opus_detail/module_extend.dart
Normal file
17
lib/models/dynamics/opus_detail/module_extend.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'item.dart';
|
||||
|
||||
class ModuleExtend {
|
||||
List<Item>? items;
|
||||
|
||||
ModuleExtend({this.items});
|
||||
|
||||
factory ModuleExtend.fromJson(Map<String, dynamic> json) => ModuleExtend(
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map((e) => Item.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'items': items?.map((e) => e.toJson()).toList(),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user