Map<String, dynamic> export(TextSpan textSpan) { return <String, dynamic>{ "text": textSpan.text, "style": exportTextStyle(textSpan.style), "children": exportChildren(textSpan) }; }