Converts the FirebaseMessageDocument to JSON format.
Map<String, dynamic> toJson() => { 'sender': sender, 'text': text, 'image_url': imageUrl, 'timestamp': timestamp, };