import 'node.dart'; class ParagraphText { List? nodes; ParagraphText({this.nodes}); factory ParagraphText.fromJson(Map json) => ParagraphText( nodes: (json['nodes'] as List?) ?.map((e) => Node.fromJson(e as Map)) .toList(), ); Map toJson() => { 'nodes': nodes?.map((e) => e.toJson()).toList(), }; }