refa: article (#757)

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
dom
2025-04-26 14:54:22 +08:00
committed by GitHub
parent 64f7ba2a1a
commit 40fb93f036
87 changed files with 2628 additions and 993 deletions

View 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(),
};
}