fromJson static method
Inherited by: UpdateAccentColors UpdateActiveEmojiReactions UpdateActiveGiftAuctions UpdateActiveLiveLocationMessages UpdateActiveNotifications UpdateAgeVerificationParameters UpdateAllowedBotUsernamePremiumSuffixes UpdateAnimatedEmojiMessageClicked UpdateAnimationSearchParameters UpdateApplicationRecaptchaVerificationRequired UpdateApplicationVerificationRequired UpdateAttachmentMenuBots UpdateAuthorizationState UpdateAutosaveSettings UpdateAvailableMessageEffects UpdateBasicGroupFullInfo UpdateBasicGroup UpdateBusinessConnection UpdateBusinessMessageEdited UpdateBusinessMessagesDeleted UpdateCall UpdateChatAccentColors UpdateChatActionBar UpdateChatAction UpdateChatActiveStories UpdateChatAddedToList UpdateChatAvailableReactions UpdateChatBackground UpdateChatBlockList UpdateChatBoost UpdateChatBusinessBotManageBar UpdateChatDefaultDisableNotification UpdateChatDraftMessage UpdateChatEmojiStatus UpdateChatFolders UpdateChatHasProtectedContent UpdateChatHasScheduledMessages UpdateChatHasWelcomeMessages UpdateChatIsMarkedAsUnread UpdateChatIsTranslatable UpdateChatJoinResult UpdateChatLastMessage UpdateChatMember UpdateChatMessageAutoDeleteTime UpdateChatMessageSender UpdateChatNotificationSettings UpdateChatOnlineMemberCount UpdateChatPendingJoinRequests UpdateChatPermissions UpdateChatPhoto UpdateChatPosition UpdateChatReadInbox UpdateChatReadOutbox UpdateChatRemovedFromList UpdateChatReplyMarkup UpdateChatRevenueAmount UpdateChatTextCompositionParameters UpdateChatTheme UpdateChatTitle UpdateChatUnreadMentionCount UpdateChatUnreadPollVoteCount UpdateChatUnreadReactionCount UpdateChatVideoChat UpdateChatViewAsTopics UpdateChatWelcomeMessages UpdateCommunityFullInfo UpdateCommunity UpdateConnectionState UpdateContactCloseBirthdays UpdateDefaultBackground UpdateDefaultPaidReactionType UpdateDefaultReactionType UpdateDeleteMessages UpdateDiceEmojis UpdateDirectMessagesChatTopic UpdateEmojiChatThemes UpdateFavoriteStickers UpdateFileAddedToDownloads UpdateFileDownload UpdateFileDownloads UpdateFileGenerationStart UpdateFileGenerationStop UpdateFileRemovedFromDownloads UpdateFile UpdateForumTopicInfo UpdateForumTopic UpdateFreezeState UpdateGiftAuctionState UpdateGramRevenueStatus UpdateGroupCallMessageLevels UpdateGroupCallMessageSendFailed UpdateGroupCallMessagesDeleted UpdateGroupCallParticipant UpdateGroupCallParticipants UpdateGroupCallVerificationState UpdateGroupCall UpdateHavePendingNotifications UpdateInstalledStickerSets UpdateLanguagePackStrings UpdateLiveStoryTopDonors UpdateManagedBot UpdateMessageContainsUnreadPollVotes UpdateMessageContentOpened UpdateMessageContent UpdateMessageEdited UpdateMessageEphemeralContent UpdateMessageFactCheck UpdateMessageInteractionInfo UpdateMessageIsPinned UpdateMessageLiveLocationViewed UpdateMessageMentionRead UpdateMessageReaction UpdateMessageReactions UpdateMessageSendAcknowledged UpdateMessageSendFailed UpdateMessageSendSucceeded UpdateMessageSuggestedPostInfo UpdateMessageUnreadReactions UpdateNewBusinessCallbackQuery UpdateNewBusinessMessage UpdateNewCallSignalingData UpdateNewCallbackQuery UpdateNewChatJoinRequest UpdateNewChat UpdateNewChosenInlineResult UpdateNewCustomEvent UpdateNewCustomQuery UpdateNewGroupCallMessage UpdateNewGroupCallPaidReaction UpdateNewGuestQuery UpdateNewInlineCallbackQuery UpdateNewInlineQuery UpdateNewInlineWidgetQuery UpdateNewMessage UpdateNewOauthRequest UpdateNewPreCheckoutQuery UpdateNewShippingQuery UpdateNewWidgetCopyQuery UpdateNewWidgetQuery UpdateNotificationGroup UpdateNotification UpdateOption UpdateOwnedGramCount UpdateOwnedStarCount UpdatePaidMediaPurchased UpdatePendingMessage UpdatePollAnswer UpdatePoll UpdateProfileAccentColors UpdateQuickReplyShortcutDeleted UpdateQuickReplyShortcutMessages UpdateQuickReplyShortcut UpdateQuickReplyShortcuts UpdateReactionNotificationSettings UpdateRecentStickers UpdateSavedAnimations UpdateSavedMessagesTags UpdateSavedMessagesTopicCount UpdateSavedMessagesTopic UpdateSavedNotificationSounds UpdateScopeNotificationSettings UpdateSecretChat UpdateServiceNotification UpdateSpeechRecognitionInFile UpdateSpeechRecognitionTrial UpdateSpeedLimitNotification UpdateStakeDiceState UpdateStarRevenueStatus UpdateStickerSet UpdateStopMessageDraft UpdateStoryDeleted UpdateStoryListChatCount UpdateStoryPostFailed UpdateStoryPostSucceeded UpdateStoryStealthMode UpdateStory UpdateSuggestedActions UpdateSupergroupFullInfo UpdateSupergroup UpdateTermsOfService UpdateTextCompositionStyles UpdateTonWalletGaslessTransfersInfo UpdateTonWalletState UpdateTonWalletTonConnectSessionDisconnectRequired UpdateTonWalletTonConnectSession UpdateTopicMessageCount UpdateTrendingStickerSets UpdateTrustedMiniAppBots UpdateUnconfirmedSession UpdateUnreadChatCount UpdateUnreadMessageCount UpdateUserFullInfo UpdateUserPrivacySettingRules UpdateUserStatus UpdateUserSubscription UpdateUser UpdateVideoPublished UpdateWebAppMessageSent UpdateWebBrowserSettings UpdateWebProxyCarrierClosed UpdateWebProxyCarrierData UpdateWebProxyCarrierOpened
Implementation
static UpdateFileGenerationStop? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return UpdateFileGenerationStop(
generationId: (json['generation_id'] is int
? json['generation_id'] as int
: int.tryParse(json['generation_id']?.toString() ?? '')) ??
0,
);
}