fromMap static method

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

Construct from Map.

Implementation

static PremiumLimitType? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  switch (_) {
    case 'premiumLimitTypeSavedAnimationCount':
      return PremiumLimitTypeSavedAnimationCount.fromMap(_map);
    case 'premiumLimitTypeChatFolderChosenChatCount':
      return PremiumLimitTypeChatFolderChosenChatCount.fromMap(_map);
    case 'premiumLimitTypeMonthlySentStoryCount':
      return PremiumLimitTypeMonthlySentStoryCount.fromMap(_map);
    case 'premiumLimitTypePinnedArchivedChatCount':
      return PremiumLimitTypePinnedArchivedChatCount.fromMap(_map);
    case 'premiumLimitTypeSupergroupCount':
      return PremiumLimitTypeSupergroupCount.fromMap(_map);
    case 'premiumLimitTypeChatFolderCount':
      return PremiumLimitTypeChatFolderCount.fromMap(_map);
    case 'premiumLimitTypePinnedChatCount':
      return PremiumLimitTypePinnedChatCount.fromMap(_map);
    case 'premiumLimitTypeShareableChatFolderCount':
      return PremiumLimitTypeShareableChatFolderCount.fromMap(_map);
    case 'premiumLimitTypeActiveStoryCount':
      return PremiumLimitTypeActiveStoryCount.fromMap(_map);
    case 'premiumLimitTypeWeeklySentStoryCount':
      return PremiumLimitTypeWeeklySentStoryCount.fromMap(_map);
    case 'premiumLimitTypeCreatedPublicChatCount':
      return PremiumLimitTypeCreatedPublicChatCount.fromMap(_map);
    case 'premiumLimitTypeBioLength':
      return PremiumLimitTypeBioLength.fromMap(_map);
    case 'premiumLimitTypeStorySuggestedReactionAreaCount':
      return PremiumLimitTypeStorySuggestedReactionAreaCount.fromMap(_map);
    case 'premiumLimitTypeCaptionLength':
      return PremiumLimitTypeCaptionLength.fromMap(_map);
    case 'premiumLimitTypeFavoriteStickerCount':
      return PremiumLimitTypeFavoriteStickerCount.fromMap(_map);
    case 'premiumLimitTypeChatFolderInviteLinkCount':
      return PremiumLimitTypeChatFolderInviteLinkCount.fromMap(_map);
    case 'premiumLimitTypeStoryCaptionLength':
      return PremiumLimitTypeStoryCaptionLength.fromMap(_map);
    case null:
    default:
      return null;
  }
}