UpdateChatAccentColors.fromJson constructor
Parses a UpdateChatAccentColors from TDLib JSON.
Implementation
factory UpdateChatAccentColors.fromJson(Map<String, dynamic> json) =>
UpdateChatAccentColors(
chatId: _readInt(json['chat_id']),
accentColorId: _readInt(json['accent_color_id']),
backgroundCustomEmojiId: _readInt(json['background_custom_emoji_id']),
upgradedGiftColors: _readOptional(
json['upgraded_gift_colors'],
UpgradedGiftColors.fromJson,
),
profileAccentColorId: _readInt(json['profile_accent_color_id']),
profileBackgroundCustomEmojiId: _readInt(
json['profile_background_custom_emoji_id'],
),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);