InternalLinkType.fromJson constructor

InternalLinkType.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory InternalLinkType.fromJson(Map<String, dynamic> json)  {
  switch(json["@type"]) {
    case InternalLinkTypeActiveSessions.CONSTRUCTOR:
      return InternalLinkTypeActiveSessions.fromJson(json);
    case InternalLinkTypeAuthenticationCode.CONSTRUCTOR:
      return InternalLinkTypeAuthenticationCode.fromJson(json);
    case InternalLinkTypeBackground.CONSTRUCTOR:
      return InternalLinkTypeBackground.fromJson(json);
    case InternalLinkTypeBotStart.CONSTRUCTOR:
      return InternalLinkTypeBotStart.fromJson(json);
    case InternalLinkTypeBotStartInGroup.CONSTRUCTOR:
      return InternalLinkTypeBotStartInGroup.fromJson(json);
    case InternalLinkTypeChangePhoneNumber.CONSTRUCTOR:
      return InternalLinkTypeChangePhoneNumber.fromJson(json);
    case InternalLinkTypeChatInvite.CONSTRUCTOR:
      return InternalLinkTypeChatInvite.fromJson(json);
    case InternalLinkTypeFilterSettings.CONSTRUCTOR:
      return InternalLinkTypeFilterSettings.fromJson(json);
    case InternalLinkTypeGame.CONSTRUCTOR:
      return InternalLinkTypeGame.fromJson(json);
    case InternalLinkTypeLanguagePack.CONSTRUCTOR:
      return InternalLinkTypeLanguagePack.fromJson(json);
    case InternalLinkTypeMessage.CONSTRUCTOR:
      return InternalLinkTypeMessage.fromJson(json);
    case InternalLinkTypeMessageDraft.CONSTRUCTOR:
      return InternalLinkTypeMessageDraft.fromJson(json);
    case InternalLinkTypePassportDataRequest.CONSTRUCTOR:
      return InternalLinkTypePassportDataRequest.fromJson(json);
    case InternalLinkTypePhoneNumberConfirmation.CONSTRUCTOR:
      return InternalLinkTypePhoneNumberConfirmation.fromJson(json);
    case InternalLinkTypeProxy.CONSTRUCTOR:
      return InternalLinkTypeProxy.fromJson(json);
    case InternalLinkTypePublicChat.CONSTRUCTOR:
      return InternalLinkTypePublicChat.fromJson(json);
    case InternalLinkTypeQrCodeAuthentication.CONSTRUCTOR:
      return InternalLinkTypeQrCodeAuthentication.fromJson(json);
    case InternalLinkTypeSettings.CONSTRUCTOR:
      return InternalLinkTypeSettings.fromJson(json);
    case InternalLinkTypeStickerSet.CONSTRUCTOR:
      return InternalLinkTypeStickerSet.fromJson(json);
    case InternalLinkTypeTheme.CONSTRUCTOR:
      return InternalLinkTypeTheme.fromJson(json);
    case InternalLinkTypeThemeSettings.CONSTRUCTOR:
      return InternalLinkTypeThemeSettings.fromJson(json);
    case InternalLinkTypeUnknownDeepLink.CONSTRUCTOR:
      return InternalLinkTypeUnknownDeepLink.fromJson(json);
    case InternalLinkTypeUnsupportedProxy.CONSTRUCTOR:
      return InternalLinkTypeUnsupportedProxy.fromJson(json);
    case InternalLinkTypeVideoChat.CONSTRUCTOR:
      return InternalLinkTypeVideoChat.fromJson(json);
    default:
      return const InternalLinkType();
  }
}