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