AvailableReactions.fromJson constructor
Parse from a json
Implementation
factory AvailableReactions.fromJson(Map<String, dynamic> json) =>
AvailableReactions(
topReactions: List<AvailableReaction>.from((json['top_reactions'] ?? [])
.map((item) => AvailableReaction.fromJson(item))
.toList()),
recentReactions: List<AvailableReaction>.from(
(json['recent_reactions'] ?? [])
.map((item) => AvailableReaction.fromJson(item))
.toList()),
popularReactions: List<AvailableReaction>.from(
(json['popular_reactions'] ?? [])
.map((item) => AvailableReaction.fromJson(item))
.toList()),
allowCustomEmoji: json['allow_custom_emoji'],
extra: json['@extra'],
clientId: json['@client_id'],
);