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 InputMessageVideoNote? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InputMessageVideoNote(
videoNote: InputVideoNote.fromJson(tdMapFromJson(json['video_note'])),
selfDestructType: MessageSelfDestructType.fromJson(
tdMapFromJson(json['self_destruct_type']),
),
);
}