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(
      name: _readString(json['name']),
      text: _readObject(json['text'], RichText.fromJson),
    );