toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['conversation_id'] = this.conversationId;
data['name'] = this.name;
data['online'] = this.online;
data['last_seen'] = this.lastSeen;
data['image'] = this.image;
data['last_message'] = this.lastMessage;
data['last_message_time'] = this.lastMessageTime;
data['is_favorite'] = this.isFavorite;
return data;
}