fromJson static method

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

Implementation

static UnreadReaction? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return UnreadReaction(
    type: ReactionType.fromJson(json['type'] as Map<String, dynamic>?)!,
    senderId:
        MessageSender.fromJson(json['sender_id'] as Map<String, dynamic>?)!,
    isBig: (json['is_big'] as bool?) ?? false,
  );
}