RichTextHashtag.fromJson constructor

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

Parses a RichTextHashtag from TDLib JSON.

Implementation

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