toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['conversation_id'] = this.conversationId;
data['sender_id'] = this.senderId;
data['message'] = this.message;
data['profileImage'] = this.profileImage;
data['file'] = this.file;
data['created_at'] = this.createdAt;
data['name'] = this.name;
data['status'] = this.status;
return data;
}