RichTextSpoiler.fromJson constructor

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

Parses a RichTextSpoiler from TDLib JSON.

Implementation

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