InputMessageText.fromJson constructor

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

Parse from a json

Implementation

factory InputMessageText.fromJson(Map<String, dynamic> json) =>
    InputMessageText(
      text: FormattedText.fromJson(json['text']),
      disableWebPagePreview: json['disable_web_page_preview'],
      clearDraft: json['clear_draft'],
    );