RichTextCashtag.fromJson constructor

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

Parses a RichTextCashtag from TDLib JSON.

Implementation

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