#include "state.h" MessageIn::MessageIn (json msgData) { if (msgData.contains("action")) { action = static_cast(msgData["action"]); } }