decode static method
Implementation
static NapaTextSpan? decode(dynamic data) {
if (data == null) return null;
return NapaTextSpan(
text: data['text'] as String?,
style: NapaTextStyle.decode(data['style']),
semanticsLabel: data['semanticsLabel'] as String?,
children: (data['children'] as List?)
?.map((e) => NapaTextSpan.decode(e)!)
.toList(),
);
}