PremiumFeaturePromotionAnimation.fromMap constructor

PremiumFeaturePromotionAnimation.fromMap(
  1. Map<String, dynamic> map
)

Implementation

PremiumFeaturePromotionAnimation.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  if (map['feature'] != null) {
    feature = TdApiMap.fromMap(map['feature']) as PremiumFeature;
  }
  if (map['animation'] != null) {
    animation = TdApiMap.fromMap(map['animation']) as Animation;
  }
}