PremiumState.fromJson constructor
Parse from a json
Implementation
factory PremiumState.fromJson(Map<String, dynamic> json) => PremiumState(
state: FormattedText.fromJson(json['state']),
paymentOptions: List<PremiumStatePaymentOption>.from(
(json['payment_options'] ?? [])
.map((item) => PremiumStatePaymentOption.fromJson(item))
.toList()),
animations: List<PremiumFeaturePromotionAnimation>.from(
(json['animations'] ?? [])
.map((item) => PremiumFeaturePromotionAnimation.fromJson(item))
.toList()),
extra: json['@extra'],
clientId: json['@client_id'],
);