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 InputMessageStory? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InputMessageStory(
storyPosterChatId: (json['story_poster_chat_id'] as int?) ?? 0,
storyId: (json['story_id'] as int?) ?? 0,
);
}