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 RichTextPlain? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return RichTextPlain(
text: (json['text'] as String?) ?? '',
);
}