AddedReaction.fromJson constructor

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

Parse from a json

Implementation

factory AddedReaction.fromJson(Map<String, dynamic> json) => AddedReaction(
      type: ReactionType.fromJson(json['type']),
      senderId: MessageSender.fromJson(json['sender_id']),
      date: json['date'],
    );