ChatData.from constructor
Implementation
ChatData.from(Map<String, dynamic> data)
: toId = data['toId'] ?? '',
preview = data['preview'] ?? '',
userSession = data['user_session'] ?? '',
senderAvatar = data['senderAvatar'] ?? '',
markdown = data['markdown'] ?? '',
receiverAvatar = data['receiverAvatar'] ?? '',
oId = data['oId'] ?? '',
time = data['time'] ?? '',
fromId = data['fromId'] ?? '',
senderUserName = data['senderUserName'] ?? '',
content = data['content'] ?? '',
receiverUserName = data['receiverUserName'] ?? '';