fromJson static method
Inherited by: InputMessageAnimation InputMessageAudio InputMessageChecklist InputMessageContact InputMessageDice InputMessageDocument InputMessageForwarded InputMessageGame InputMessageInvoice InputMessageLiveLocation InputMessageLocation InputMessagePaidMedia InputMessagePhoto InputMessagePoll InputMessageRichMessage InputMessageStakeDice InputMessageSticker InputMessageStory InputMessageText InputMessageVenue InputMessageVideo InputMessageVideoNote InputMessageVoiceNote
Implementation
static InputMessageText? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InputMessageText(
text: FormattedText.fromJson(tdMapFromJson(json['text'])),
linkPreviewOptions: LinkPreviewOptions.fromJson(
tdMapFromJson(json['link_preview_options']),
),
clearDraft: (json['clear_draft'] as bool?) ?? false,
);
}