RichTextReference.fromJson constructor

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

Parses a RichTextReference from TDLib JSON.

Implementation

factory RichTextReference.fromJson(Map<String, dynamic> json) =>
    RichTextReference(
      text: _readObject(json['text'], RichText.fromJson),
      anchorName: _readString(json['anchor_name']),
      url: _readString(json['url']),
    );