BusinessFeaturePromotionAnimation.fromJson constructor

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

Parses a BusinessFeaturePromotionAnimation from TDLib JSON.

Implementation

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