EmojiStatusTypeUpgradedGift.fromJson constructor

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

Parses a EmojiStatusTypeUpgradedGift from TDLib JSON.

Implementation

factory EmojiStatusTypeUpgradedGift.fromJson(Map<String, dynamic> json) =>
    EmojiStatusTypeUpgradedGift(
      upgradedGiftId: _readInt(json['upgraded_gift_id']),
      giftTitle: _readString(json['gift_title']),
      giftName: _readString(json['gift_name']),
      modelCustomEmojiId: _readInt(json['model_custom_emoji_id']),
      symbolCustomEmojiId: _readInt(json['symbol_custom_emoji_id']),
      backdropColors: _readObject(
        json['backdrop_colors'],
        UpgradedGiftBackdropColors.fromJson,
      ),
    );