def add_from_json(self, db): self._dbs[db['name']] = DbConnectionCfg(db['host'], db['port'], db['name'], db['username'], db['password'])