MessageChat.fromJson constructor
MessageChat.fromJson(
- dynamic eventData
Implementation
factory MessageChat.fromJson(dynamic eventData) {
return MessageChat(
customText: eventData['customText'] ?? '',
from: eventData['from'] ?? '',
senderJid: eventData['senderJid'] ?? '',
time: eventData['time'] ?? '0',
isReadSent: eventData['isReadSent'] ?? 0,
id: eventData['id'] ?? '',
type: eventData['type'] ?? '',
body: eventData['body'] ?? '',
msgtype: eventData['msgtype'] ?? '',
bubbleType: eventData['bubbleType'] ?? '',
mediaURL: eventData['mediaURL'] ?? '',
delayTime: eventData['delayTime'] ?? '',
chatStateType: eventData['chatStateType'] ?? '',
);
}