Map<String, Object> get toDictionary { return {"id": id, "type": type.toString(), "connected": connected}; }