MessageGiftedPremium.fromJson constructor
Parse from a json
Implementation
factory MessageGiftedPremium.fromJson(Map<String, dynamic> json) =>
MessageGiftedPremium(
gifterUserId: json['gifter_user_id'],
currency: json['currency'],
amount: json['amount'],
cryptocurrency: json['cryptocurrency'],
cryptocurrencyAmount: int.parse(json['cryptocurrency_amount']),
monthCount: json['month_count'],
sticker:
json['sticker'] == null ? null : Sticker.fromJson(json['sticker']),
);