map<TResult extends Object?> method

TResult map<TResult extends Object?>({
  1. required TResult attachmentMenuBot(
    1. InternalLinkTypeAttachmentMenuBot value
    ),
  2. required TResult authenticationCode(
    1. InternalLinkTypeAuthenticationCode value
    ),
  3. required TResult background(
    1. InternalLinkTypeBackground value
    ),
  4. required TResult botAddToChannel(
    1. InternalLinkTypeBotAddToChannel value
    ),
  5. required TResult botStart(
    1. InternalLinkTypeBotStart value
    ),
  6. required TResult botStartInGroup(
    1. InternalLinkTypeBotStartInGroup value
    ),
  7. required TResult businessChat(
    1. InternalLinkTypeBusinessChat value
    ),
  8. required TResult callsPage(
    1. InternalLinkTypeCallsPage value
    ),
  9. required TResult chatAffiliateProgram(
    1. InternalLinkTypeChatAffiliateProgram value
    ),
  10. required TResult chatBoost(
    1. InternalLinkTypeChatBoost value
    ),
  11. required TResult chatFolderInvite(
    1. InternalLinkTypeChatFolderInvite value
    ),
  12. required TResult chatInvite(
    1. InternalLinkTypeChatInvite value
    ),
  13. required TResult chatSelection(
    1. InternalLinkTypeChatSelection value
    ),
  14. required TResult contactsPage(
    1. InternalLinkTypeContactsPage value
    ),
  15. required TResult directMessagesChat(
    1. InternalLinkTypeDirectMessagesChat value
    ),
  16. required TResult game(
    1. InternalLinkTypeGame value
    ),
  17. required TResult giftAuction(
    1. InternalLinkTypeGiftAuction value
    ),
  18. required TResult giftCollection(
    1. InternalLinkTypeGiftCollection value
    ),
  19. required TResult groupCall(
    1. InternalLinkTypeGroupCall value
    ),
  20. required TResult instantView(
    1. InternalLinkTypeInstantView value
    ),
  21. required TResult invoice(
    1. InternalLinkTypeInvoice value
    ),
  22. required TResult languagePack(
    1. InternalLinkTypeLanguagePack value
    ),
  23. required TResult liveStory(
    1. InternalLinkTypeLiveStory value
    ),
  24. required TResult mainWebApp(
    1. InternalLinkTypeMainWebApp value
    ),
  25. required TResult message(
    1. InternalLinkTypeMessage value
    ),
  26. required TResult messageDraft(
    1. InternalLinkTypeMessageDraft value
    ),
  27. required TResult myProfilePage(
    1. InternalLinkTypeMyProfilePage value
    ),
  28. required TResult newChannelChat(
    1. InternalLinkTypeNewChannelChat value
    ),
  29. required TResult newGroupChat(
    1. InternalLinkTypeNewGroupChat value
    ),
  30. required TResult newPrivateChat(
    1. InternalLinkTypeNewPrivateChat value
    ),
  31. required TResult newStory(
    1. InternalLinkTypeNewStory value
    ),
  32. required TResult oauth(
    1. InternalLinkTypeOauth value
    ),
  33. required TResult passportDataRequest(
    1. InternalLinkTypePassportDataRequest value
    ),
  34. required TResult phoneNumberConfirmation(
    1. InternalLinkTypePhoneNumberConfirmation value
    ),
  35. required TResult premiumFeaturesPage(
    1. InternalLinkTypePremiumFeaturesPage value
    ),
  36. required TResult premiumGiftCode(
    1. InternalLinkTypePremiumGiftCode value
    ),
  37. required TResult premiumGiftPurchase(
    1. InternalLinkTypePremiumGiftPurchase value
    ),
  38. required TResult proxy(
    1. InternalLinkTypeProxy value
    ),
  39. required TResult publicChat(
    1. InternalLinkTypePublicChat value
    ),
  40. required TResult qrCodeAuthentication(
    1. InternalLinkTypeQrCodeAuthentication value
    ),
  41. required TResult requestManagedBot(
    1. InternalLinkTypeRequestManagedBot value
    ),
  42. required TResult restorePurchases(
    1. InternalLinkTypeRestorePurchases value
    ),
  43. required TResult savedMessages(
    1. InternalLinkTypeSavedMessages value
    ),
  44. required TResult search(
    1. InternalLinkTypeSearch value
    ),
  45. required TResult settings(
    1. InternalLinkTypeSettings value
    ),
  46. required TResult starPurchase(
    1. InternalLinkTypeStarPurchase value
    ),
  47. required TResult stickerSet(
    1. InternalLinkTypeStickerSet value
    ),
  48. required TResult story(
    1. InternalLinkTypeStory value
    ),
  49. required TResult storyAlbum(
    1. InternalLinkTypeStoryAlbum value
    ),
  50. required TResult textCompositionStyle(
    1. InternalLinkTypeTextCompositionStyle value
    ),
  51. required TResult theme(
    1. InternalLinkTypeTheme value
    ),
  52. required TResult unknownDeepLink(
    1. InternalLinkTypeUnknownDeepLink value
    ),
  53. required TResult upgradedGift(
    1. InternalLinkTypeUpgradedGift value
    ),
  54. required TResult userPhoneNumber(
    1. InternalLinkTypeUserPhoneNumber value
    ),
  55. required TResult userToken(
    1. InternalLinkTypeUserToken value
    ),
  56. required TResult videoChat(
    1. InternalLinkTypeVideoChat value
    ),
  57. required TResult webApp(
    1. InternalLinkTypeWebApp value
    ),
})

Implementation

TResult map<TResult extends Object?>({
  required TResult Function(InternalLinkTypeAttachmentMenuBot value)
  attachmentMenuBot,
  required TResult Function(InternalLinkTypeAuthenticationCode value)
  authenticationCode,
  required TResult Function(InternalLinkTypeBackground value) background,
  required TResult Function(InternalLinkTypeBotAddToChannel value)
  botAddToChannel,
  required TResult Function(InternalLinkTypeBotStart value) botStart,
  required TResult Function(InternalLinkTypeBotStartInGroup value)
  botStartInGroup,
  required TResult Function(InternalLinkTypeBusinessChat value) businessChat,
  required TResult Function(InternalLinkTypeCallsPage value) callsPage,
  required TResult Function(InternalLinkTypeChatAffiliateProgram value)
  chatAffiliateProgram,
  required TResult Function(InternalLinkTypeChatBoost value) chatBoost,
  required TResult Function(InternalLinkTypeChatFolderInvite value)
  chatFolderInvite,
  required TResult Function(InternalLinkTypeChatInvite value) chatInvite,
  required TResult Function(InternalLinkTypeChatSelection value)
  chatSelection,
  required TResult Function(InternalLinkTypeContactsPage value) contactsPage,
  required TResult Function(InternalLinkTypeDirectMessagesChat value)
  directMessagesChat,
  required TResult Function(InternalLinkTypeGame value) game,
  required TResult Function(InternalLinkTypeGiftAuction value) giftAuction,
  required TResult Function(InternalLinkTypeGiftCollection value)
  giftCollection,
  required TResult Function(InternalLinkTypeGroupCall value) groupCall,
  required TResult Function(InternalLinkTypeInstantView value) instantView,
  required TResult Function(InternalLinkTypeInvoice value) invoice,
  required TResult Function(InternalLinkTypeLanguagePack value) languagePack,
  required TResult Function(InternalLinkTypeLiveStory value) liveStory,
  required TResult Function(InternalLinkTypeMainWebApp value) mainWebApp,
  required TResult Function(InternalLinkTypeMessage value) message,
  required TResult Function(InternalLinkTypeMessageDraft value) messageDraft,
  required TResult Function(InternalLinkTypeMyProfilePage value)
  myProfilePage,
  required TResult Function(InternalLinkTypeNewChannelChat value)
  newChannelChat,
  required TResult Function(InternalLinkTypeNewGroupChat value) newGroupChat,
  required TResult Function(InternalLinkTypeNewPrivateChat value)
  newPrivateChat,
  required TResult Function(InternalLinkTypeNewStory value) newStory,
  required TResult Function(InternalLinkTypeOauth value) oauth,
  required TResult Function(InternalLinkTypePassportDataRequest value)
  passportDataRequest,
  required TResult Function(InternalLinkTypePhoneNumberConfirmation value)
  phoneNumberConfirmation,
  required TResult Function(InternalLinkTypePremiumFeaturesPage value)
  premiumFeaturesPage,
  required TResult Function(InternalLinkTypePremiumGiftCode value)
  premiumGiftCode,
  required TResult Function(InternalLinkTypePremiumGiftPurchase value)
  premiumGiftPurchase,
  required TResult Function(InternalLinkTypeProxy value) proxy,
  required TResult Function(InternalLinkTypePublicChat value) publicChat,
  required TResult Function(InternalLinkTypeQrCodeAuthentication value)
  qrCodeAuthentication,
  required TResult Function(InternalLinkTypeRequestManagedBot value)
  requestManagedBot,
  required TResult Function(InternalLinkTypeRestorePurchases value)
  restorePurchases,
  required TResult Function(InternalLinkTypeSavedMessages value)
  savedMessages,
  required TResult Function(InternalLinkTypeSearch value) search,
  required TResult Function(InternalLinkTypeSettings value) settings,
  required TResult Function(InternalLinkTypeStarPurchase value) starPurchase,
  required TResult Function(InternalLinkTypeStickerSet value) stickerSet,
  required TResult Function(InternalLinkTypeStory value) story,
  required TResult Function(InternalLinkTypeStoryAlbum value) storyAlbum,
  required TResult Function(InternalLinkTypeTextCompositionStyle value)
  textCompositionStyle,
  required TResult Function(InternalLinkTypeTheme value) theme,
  required TResult Function(InternalLinkTypeUnknownDeepLink value)
  unknownDeepLink,
  required TResult Function(InternalLinkTypeUpgradedGift value) upgradedGift,
  required TResult Function(InternalLinkTypeUserPhoneNumber value)
  userPhoneNumber,
  required TResult Function(InternalLinkTypeUserToken value) userToken,
  required TResult Function(InternalLinkTypeVideoChat value) videoChat,
  required TResult Function(InternalLinkTypeWebApp value) webApp,
}) {
  switch (getConstructor()) {
    case InternalLinkTypeAttachmentMenuBot.constructor:
      return attachmentMenuBot.call(
        this as InternalLinkTypeAttachmentMenuBot,
      );
    case InternalLinkTypeAuthenticationCode.constructor:
      return authenticationCode.call(
        this as InternalLinkTypeAuthenticationCode,
      );
    case InternalLinkTypeBackground.constructor:
      return background.call(this as InternalLinkTypeBackground);
    case InternalLinkTypeBotAddToChannel.constructor:
      return botAddToChannel.call(this as InternalLinkTypeBotAddToChannel);
    case InternalLinkTypeBotStart.constructor:
      return botStart.call(this as InternalLinkTypeBotStart);
    case InternalLinkTypeBotStartInGroup.constructor:
      return botStartInGroup.call(this as InternalLinkTypeBotStartInGroup);
    case InternalLinkTypeBusinessChat.constructor:
      return businessChat.call(this as InternalLinkTypeBusinessChat);
    case InternalLinkTypeCallsPage.constructor:
      return callsPage.call(this as InternalLinkTypeCallsPage);
    case InternalLinkTypeChatAffiliateProgram.constructor:
      return chatAffiliateProgram.call(
        this as InternalLinkTypeChatAffiliateProgram,
      );
    case InternalLinkTypeChatBoost.constructor:
      return chatBoost.call(this as InternalLinkTypeChatBoost);
    case InternalLinkTypeChatFolderInvite.constructor:
      return chatFolderInvite.call(this as InternalLinkTypeChatFolderInvite);
    case InternalLinkTypeChatInvite.constructor:
      return chatInvite.call(this as InternalLinkTypeChatInvite);
    case InternalLinkTypeChatSelection.constructor:
      return chatSelection.call(this as InternalLinkTypeChatSelection);
    case InternalLinkTypeContactsPage.constructor:
      return contactsPage.call(this as InternalLinkTypeContactsPage);
    case InternalLinkTypeDirectMessagesChat.constructor:
      return directMessagesChat.call(
        this as InternalLinkTypeDirectMessagesChat,
      );
    case InternalLinkTypeGame.constructor:
      return game.call(this as InternalLinkTypeGame);
    case InternalLinkTypeGiftAuction.constructor:
      return giftAuction.call(this as InternalLinkTypeGiftAuction);
    case InternalLinkTypeGiftCollection.constructor:
      return giftCollection.call(this as InternalLinkTypeGiftCollection);
    case InternalLinkTypeGroupCall.constructor:
      return groupCall.call(this as InternalLinkTypeGroupCall);
    case InternalLinkTypeInstantView.constructor:
      return instantView.call(this as InternalLinkTypeInstantView);
    case InternalLinkTypeInvoice.constructor:
      return invoice.call(this as InternalLinkTypeInvoice);
    case InternalLinkTypeLanguagePack.constructor:
      return languagePack.call(this as InternalLinkTypeLanguagePack);
    case InternalLinkTypeLiveStory.constructor:
      return liveStory.call(this as InternalLinkTypeLiveStory);
    case InternalLinkTypeMainWebApp.constructor:
      return mainWebApp.call(this as InternalLinkTypeMainWebApp);
    case InternalLinkTypeMessage.constructor:
      return message.call(this as InternalLinkTypeMessage);
    case InternalLinkTypeMessageDraft.constructor:
      return messageDraft.call(this as InternalLinkTypeMessageDraft);
    case InternalLinkTypeMyProfilePage.constructor:
      return myProfilePage.call(this as InternalLinkTypeMyProfilePage);
    case InternalLinkTypeNewChannelChat.constructor:
      return newChannelChat.call(this as InternalLinkTypeNewChannelChat);
    case InternalLinkTypeNewGroupChat.constructor:
      return newGroupChat.call(this as InternalLinkTypeNewGroupChat);
    case InternalLinkTypeNewPrivateChat.constructor:
      return newPrivateChat.call(this as InternalLinkTypeNewPrivateChat);
    case InternalLinkTypeNewStory.constructor:
      return newStory.call(this as InternalLinkTypeNewStory);
    case InternalLinkTypeOauth.constructor:
      return oauth.call(this as InternalLinkTypeOauth);
    case InternalLinkTypePassportDataRequest.constructor:
      return passportDataRequest.call(
        this as InternalLinkTypePassportDataRequest,
      );
    case InternalLinkTypePhoneNumberConfirmation.constructor:
      return phoneNumberConfirmation.call(
        this as InternalLinkTypePhoneNumberConfirmation,
      );
    case InternalLinkTypePremiumFeaturesPage.constructor:
      return premiumFeaturesPage.call(
        this as InternalLinkTypePremiumFeaturesPage,
      );
    case InternalLinkTypePremiumGiftCode.constructor:
      return premiumGiftCode.call(this as InternalLinkTypePremiumGiftCode);
    case InternalLinkTypePremiumGiftPurchase.constructor:
      return premiumGiftPurchase.call(
        this as InternalLinkTypePremiumGiftPurchase,
      );
    case InternalLinkTypeProxy.constructor:
      return proxy.call(this as InternalLinkTypeProxy);
    case InternalLinkTypePublicChat.constructor:
      return publicChat.call(this as InternalLinkTypePublicChat);
    case InternalLinkTypeQrCodeAuthentication.constructor:
      return qrCodeAuthentication.call(
        this as InternalLinkTypeQrCodeAuthentication,
      );
    case InternalLinkTypeRequestManagedBot.constructor:
      return requestManagedBot.call(
        this as InternalLinkTypeRequestManagedBot,
      );
    case InternalLinkTypeRestorePurchases.constructor:
      return restorePurchases.call(this as InternalLinkTypeRestorePurchases);
    case InternalLinkTypeSavedMessages.constructor:
      return savedMessages.call(this as InternalLinkTypeSavedMessages);
    case InternalLinkTypeSearch.constructor:
      return search.call(this as InternalLinkTypeSearch);
    case InternalLinkTypeSettings.constructor:
      return settings.call(this as InternalLinkTypeSettings);
    case InternalLinkTypeStarPurchase.constructor:
      return starPurchase.call(this as InternalLinkTypeStarPurchase);
    case InternalLinkTypeStickerSet.constructor:
      return stickerSet.call(this as InternalLinkTypeStickerSet);
    case InternalLinkTypeStory.constructor:
      return story.call(this as InternalLinkTypeStory);
    case InternalLinkTypeStoryAlbum.constructor:
      return storyAlbum.call(this as InternalLinkTypeStoryAlbum);
    case InternalLinkTypeTextCompositionStyle.constructor:
      return textCompositionStyle.call(
        this as InternalLinkTypeTextCompositionStyle,
      );
    case InternalLinkTypeTheme.constructor:
      return theme.call(this as InternalLinkTypeTheme);
    case InternalLinkTypeUnknownDeepLink.constructor:
      return unknownDeepLink.call(this as InternalLinkTypeUnknownDeepLink);
    case InternalLinkTypeUpgradedGift.constructor:
      return upgradedGift.call(this as InternalLinkTypeUpgradedGift);
    case InternalLinkTypeUserPhoneNumber.constructor:
      return userPhoneNumber.call(this as InternalLinkTypeUserPhoneNumber);
    case InternalLinkTypeUserToken.constructor:
      return userToken.call(this as InternalLinkTypeUserToken);
    case InternalLinkTypeVideoChat.constructor:
      return videoChat.call(this as InternalLinkTypeVideoChat);
    case InternalLinkTypeWebApp.constructor:
      return webApp.call(this as InternalLinkTypeWebApp);
  }
  throw StateError('not handled type Generator');
}