toJson method
Implementation
Map<String, dynamic> toJson() {
return {
"from": from,
// "to": to,
"message": message,
"messageType": messageType,
// "visibleTo": visibleTo,
"createdAt": createdAt,
// "likedBy": likedBy,
"thumbnail": thumbnail,
// "bookingId": bookingId,
"durationInSeconds": durationInSeconds,
};
}