fromJson static method
Inherited by: RichTextAnchorLink RichTextAnchor RichTextBankCardNumber RichTextBold RichTextBotCommand RichTextButton RichTextCashtag RichTextCustomEmoji RichTextDateTime RichTextDiff RichTextEmailAddress RichTextFixed RichTextHashtag RichTextIcon RichTextItalic RichTextMarked RichTextMathematicalExpression RichTextMentionName RichTextMention RichTextPhoneNumber RichTextPlain RichTextReferenceLink RichTextReference RichTextSpoiler RichTextStrikethrough RichTextSubscript RichTextSuperscript RichTextTonAddress RichTextUnderline RichTextUrl RichTexts
Implementation
static RichTexts? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return RichTexts(
texts: List<RichText>.from(
((json['texts'] as List<dynamic>?) ?? <dynamic>[])
.map((item) => RichText.fromJson(item as Map<String, dynamic>?))
.toList()),
);
}