fromJson static method
Implementation
static ProfileAccentColor? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ProfileAccentColor(
id: (json['id'] as int?) ?? 0,
lightThemeColors: ProfileAccentColors.fromJson(
tdMapFromJson(json['light_theme_colors']),
),
darkThemeColors: ProfileAccentColors.fromJson(
tdMapFromJson(json['dark_theme_colors']),
),
minSupergroupChatBoostLevel:
(json['min_supergroup_chat_boost_level'] as int?) ?? 0,
minChannelChatBoostLevel:
(json['min_channel_chat_boost_level'] as int?) ?? 0,
);
}