actionTypeFromJson function
Implementation
ChatwootActionType actionTypeFromJson(String? value) {
switch (value) {
case "conversation.typing_on":
return ChatwootActionType.conversation_typing_on;
case "conversation.typing_off":
return ChatwootActionType.conversation_typing_on;
case "update_presence":
return ChatwootActionType.update_presence;
case "subscribe":
return ChatwootActionType.subscribe;
default:
return ChatwootActionType.update_presence;
}
}