InputMessageSharedWidget.fromJson constructor
Parses a InputMessageSharedWidget from TDLib JSON.
Implementation
factory InputMessageSharedWidget.fromJson(Map<String, dynamic> json) =>
InputMessageSharedWidget(
widgetId: _readInt(json['widget_id']),
chatData: _readString(json['chat_data']),
caption: _readOptional(json['caption'], FormattedText.fromJson),
showCaptionAboveMedia: _readBool(json['show_caption_above_media']),
);