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 InputMessageForwarded? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InputMessageForwarded(
fromChatId: (json['from_chat_id'] as int?) ?? 0,
messageId: (json['message_id'] as int?) ?? 0,
inGameShare: (json['in_game_share'] as bool?) ?? false,
replaceVideoStartTimestamp:
(json['replace_video_start_timestamp'] as bool?) ?? false,
newVideoStartTimestamp: (json['new_video_start_timestamp'] as int?) ?? 0,
copyOptions: MessageCopyOptions.fromJson(
tdMapFromJson(json['copy_options']),
),
);
}