RichTextMention.fromJson constructor

RichTextMention.fromJson(
  1. Map<String, dynamic> json
)

Parses a RichTextMention from TDLib JSON.

Implementation

factory RichTextMention.fromJson(Map<String, dynamic> json) =>
    RichTextMention(
      text: _readObject(json['text'], RichText.fromJson),
      username: _readString(json['username']),
    );