PremiumFeaturePromotionAnimation.fromJson constructor

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

Parses a PremiumFeaturePromotionAnimation from TDLib JSON.

Implementation

factory PremiumFeaturePromotionAnimation.fromJson(
        Map<String, dynamic> json) =>
    PremiumFeaturePromotionAnimation(
      feature: _readObject(json['feature'], PremiumFeature.fromJson),
      animation: _readObject(json['animation'], Animation.fromJson),
    );