fromMap static method
override
Construct from Map.
Implementation
static PremiumFeature? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'premiumFeatureDisabledAds':
return PremiumFeatureDisabledAds.fromMap(_map);
case 'premiumFeatureAdvancedChatManagement':
return PremiumFeatureAdvancedChatManagement.fromMap(_map);
case 'premiumFeatureUniqueStickers':
return PremiumFeatureUniqueStickers.fromMap(_map);
case 'premiumFeatureVoiceRecognition':
return PremiumFeatureVoiceRecognition.fromMap(_map);
case 'premiumFeatureEmojiStatus':
return PremiumFeatureEmojiStatus.fromMap(_map);
case 'premiumFeatureCustomEmoji':
return PremiumFeatureCustomEmoji.fromMap(_map);
case 'premiumFeatureImprovedDownloadSpeed':
return PremiumFeatureImprovedDownloadSpeed.fromMap(_map);
case 'premiumFeatureForumTopicIcon':
return PremiumFeatureForumTopicIcon.fromMap(_map);
case 'premiumFeatureUpgradedStories':
return PremiumFeatureUpgradedStories.fromMap(_map);
case 'premiumFeatureRealTimeChatTranslation':
return PremiumFeatureRealTimeChatTranslation.fromMap(_map);
case 'premiumFeatureIncreasedLimits':
return PremiumFeatureIncreasedLimits.fromMap(_map);
case 'premiumFeatureAnimatedProfilePhoto':
return PremiumFeatureAnimatedProfilePhoto.fromMap(_map);
case 'premiumFeatureAppIcons':
return PremiumFeatureAppIcons.fromMap(_map);
case 'premiumFeatureIncreasedUploadFileSize':
return PremiumFeatureIncreasedUploadFileSize.fromMap(_map);
case 'premiumFeatureProfileBadge':
return PremiumFeatureProfileBadge.fromMap(_map);
case 'premiumFeatureChatBoost':
return PremiumFeatureChatBoost.fromMap(_map);
case 'premiumFeatureUniqueReactions':
return PremiumFeatureUniqueReactions.fromMap(_map);
case null:
default:
return null;
}
}