Map<String, Object> get toDictionary { return { "name": name, "id": id, "type": type, "connected": connected, }; }