InputMessageWidget.fromJson constructor

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

Parses a InputMessageWidget from TDLib JSON.

Implementation

factory InputMessageWidget.fromJson(Map<String, dynamic> json) =>
    InputMessageWidget(
      width: _readInt(json['width']),
      height: _readInt(json['height']),
      html: _readString(json['html']),
      publicData: _readString(json['public_data']),
      chatData: _readString(json['chat_data']),
      caption: _readOptional(json['caption'], FormattedText.fromJson),
      showCaptionAboveMedia: _readBool(json['show_caption_above_media']),
      allowQueries: _readBool(json['allow_queries']),
      isShared: _readBool(json['is_shared']),
    );