ChatState.fromJson constructor

ChatState.fromJson(
  1. 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'] ?? '',
  );
}