EMChatThreadEvent.fromJson constructor
EMChatThreadEvent.fromJson(
- Map map
Implementation
factory EMChatThreadEvent.fromJson(Map map) {
String from = map["from"];
EMChatThreadOperation type = EMChatThreadOperation.values[map["type"]];
EMChatThread? chatThread = map.getValue<EMChatThread>(
"thread",
callback: (map) {
if (map == null) {
return null;
}
return EMChatThread.fromJson(map);
},
);
return EMChatThreadEvent._private(
type: type,
from: from,
chatThread: chatThread,
);
}