ChatState.fromJson constructor
ChatState.fromJson(
- dynamic eventData
Implementation
factory ChatState.fromJson(dynamic eventData) {
return ChatState(
from: eventData['from'] ?? '',
senderJid: eventData['senderJid'] ?? '',
id: eventData['id'] ?? '',
type: eventData['type'] ?? '',
msgtype: eventData['msgtype'] ?? '',
chatStateType: eventData['chatStateType'] ?? '',
);
}