Constructor to create an instance of Message.
Message({required this.text, required this.timestamp, required this.userId});