Map<String, dynamic> toJson() { return { 'sender': sender?.toJson(), 'timestamp': timestamp, 'link': link?.toJson(), 'body': body.toJson(), }; }