MessageReaction.fromJson constructor
Parse from a json
Implementation
factory MessageReaction.fromJson(Map<String, dynamic> json) =>
MessageReaction(
type: ReactionType.fromJson(json['type']),
totalCount: json['total_count'],
isChosen: json['is_chosen'],
recentSenderIds: List<MessageSender>.from(
(json['recent_sender_ids'] ?? [])
.map((item) => MessageSender.fromJson(item))
.toList()),
);