class ChatMessageModal { int? id; int? senderId; int? receiverId; int? propertyId; String? message; String? file; String? audio; String? createdAt; String? updatedAt; ChatMessageModal( {this.id, this.senderId, this.receiverId, this.propertyId, this.message, this.file, this.audio, this.createdAt, this.updatedAt}); ChatMessageModal.fromJson(Map json) { id = json['id']; senderId = json['sender_id']; receiverId = json['receiver_id']; propertyId = json['property_id']; message = json['message']; file = json['file']; audio = json['audio']; createdAt = json['created_at']; updatedAt = json['updated_at']; } Map toJson() { final Map data = {}; data['id'] = id; data['sender_id'] = senderId; data['receiver_id'] = receiverId; data['property_id'] = propertyId; data['message'] = message; data['file'] = file; data['audio'] = audio; data['created_at'] = createdAt; data['updated_at'] = updatedAt; return data; } }