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