MessageText.fromJson constructor

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

Parses a MessageText from TDLib JSON.

Implementation

factory MessageText.fromJson(Map<String, dynamic> json) => MessageText(
      text: _readObject(json['text'], FormattedText.fromJson),
      webPage: _readOptional(json['web_page'], WebPage.fromJson),
      linkPreviewOptions: _readOptional(
          json['link_preview_options'], LinkPreviewOptions.fromJson),
    );