ReactionEvent.fromMap constructor

ReactionEvent.fromMap(
  1. dynamic map
)

Implementation

factory ReactionEvent.fromMap(dynamic map){
  if (map == null) throw ArgumentError('The type of reaction event map is null');
  return ReactionEvent(
      reaction: map['reaction']!=null? Reaction.fromMap(map['reaction']) : null,
      receiverId: map['receiverId'] ?? '',
      receiverType: map['receiverType'] ?? '',
      conversationId: map['conversationId'] ?? '',
      parentMessageId: map['parentMessageId'] ?? '',
  );
}