def METHOD_NAME(self, dbdict):
    return {
        'workerid': dbdict['id'],
        'name': dbdict['name'],
        'workerinfo': dbdict['workerinfo'],
        'paused': dbdict['paused'],
        'graceful': dbdict['graceful'],
        'connected_to': [
            {'masterid': id}
            for id in dbdict['connected_to']],
        'configured_on': [
            {'masterid': c['masterid'],
             'builderid': c['builderid']}
            for c in dbdict['configured_on']],
    }