fromMap static method

InternalLinkType? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static InternalLinkType? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  switch (_) {
    case 'internalLinkTypeGame':
      return InternalLinkTypeGame.fromMap(_map);
    case 'internalLinkTypeChatFolderSettings':
      return InternalLinkTypeChatFolderSettings.fromMap(_map);
    case 'internalLinkTypeStory':
      return InternalLinkTypeStory.fromMap(_map);
    case 'internalLinkTypeChangePhoneNumber':
      return InternalLinkTypeChangePhoneNumber.fromMap(_map);
    case 'internalLinkTypeQrCodeAuthentication':
      return InternalLinkTypeQrCodeAuthentication.fromMap(_map);
    case 'internalLinkTypeBotStartInGroup':
      return InternalLinkTypeBotStartInGroup.fromMap(_map);
    case 'internalLinkTypePhoneNumberConfirmation':
      return InternalLinkTypePhoneNumberConfirmation.fromMap(_map);
    case 'internalLinkTypeMessageDraft':
      return InternalLinkTypeMessageDraft.fromMap(_map);
    case 'internalLinkTypeThemeSettings':
      return InternalLinkTypeThemeSettings.fromMap(_map);
    case 'internalLinkTypeUnsupportedProxy':
      return InternalLinkTypeUnsupportedProxy.fromMap(_map);
    case 'internalLinkTypeChatFolderInvite':
      return InternalLinkTypeChatFolderInvite.fromMap(_map);
    case 'internalLinkTypeChatBoost':
      return InternalLinkTypeChatBoost.fromMap(_map);
    case 'internalLinkTypeVideoChat':
      return InternalLinkTypeVideoChat.fromMap(_map);
    case 'internalLinkTypeStickerSet':
      return InternalLinkTypeStickerSet.fromMap(_map);
    case 'internalLinkTypeEditProfileSettings':
      return InternalLinkTypeEditProfileSettings.fromMap(_map);
    case 'internalLinkTypePublicChat':
      return InternalLinkTypePublicChat.fromMap(_map);
    case 'internalLinkTypeBotStart':
      return InternalLinkTypeBotStart.fromMap(_map);
    case 'internalLinkTypeWebApp':
      return InternalLinkTypeWebApp.fromMap(_map);
    case 'internalLinkTypeUserPhoneNumber':
      return InternalLinkTypeUserPhoneNumber.fromMap(_map);
    case 'internalLinkTypeBackground':
      return InternalLinkTypeBackground.fromMap(_map);
    case 'internalLinkTypeLanguagePack':
      return InternalLinkTypeLanguagePack.fromMap(_map);
    case 'internalLinkTypeUserToken':
      return InternalLinkTypeUserToken.fromMap(_map);
    case 'internalLinkTypeTheme':
      return InternalLinkTypeTheme.fromMap(_map);
    case 'internalLinkTypeUnknownDeepLink':
      return InternalLinkTypeUnknownDeepLink.fromMap(_map);
    case 'internalLinkTypeSideMenuBot':
      return InternalLinkTypeSideMenuBot.fromMap(_map);
    case 'internalLinkTypeAuthenticationCode':
      return InternalLinkTypeAuthenticationCode.fromMap(_map);
    case 'internalLinkTypeInstantView':
      return InternalLinkTypeInstantView.fromMap(_map);
    case 'internalLinkTypeBotAddToChannel':
      return InternalLinkTypeBotAddToChannel.fromMap(_map);
    case 'internalLinkTypePrivacyAndSecuritySettings':
      return InternalLinkTypePrivacyAndSecuritySettings.fromMap(_map);
    case 'internalLinkTypeInvoice':
      return InternalLinkTypeInvoice.fromMap(_map);
    case 'internalLinkTypeSettings':
      return InternalLinkTypeSettings.fromMap(_map);
    case 'internalLinkTypeAttachmentMenuBot':
      return InternalLinkTypeAttachmentMenuBot.fromMap(_map);
    case 'internalLinkTypeChatInvite':
      return InternalLinkTypeChatInvite.fromMap(_map);
    case 'internalLinkTypeDefaultMessageAutoDeleteTimerSettings':
      return InternalLinkTypeDefaultMessageAutoDeleteTimerSettings.fromMap(
          _map);
    case 'internalLinkTypePassportDataRequest':
      return InternalLinkTypePassportDataRequest.fromMap(_map);
    case 'internalLinkTypeLanguageSettings':
      return InternalLinkTypeLanguageSettings.fromMap(_map);
    case 'internalLinkTypeRestorePurchases':
      return InternalLinkTypeRestorePurchases.fromMap(_map);
    case 'internalLinkTypePremiumFeatures':
      return InternalLinkTypePremiumFeatures.fromMap(_map);
    case 'internalLinkTypeActiveSessions':
      return InternalLinkTypeActiveSessions.fromMap(_map);
    case 'internalLinkTypeMessage':
      return InternalLinkTypeMessage.fromMap(_map);
    case 'internalLinkTypeProxy':
      return InternalLinkTypeProxy.fromMap(_map);
    case null:
    default:
      return null;
  }
}