

@staticmethod
def construct(state):
    server = Server(state['server'])
    droned = server.droned
    droned.port = state['port']
    droned.apps = frozenset((App(name) for name in state.get('apps', [])))
    droned.currentFailure = state['currentFailure']
    return droned

dataset/ETHPy150Open OrbitzWorldwide/droned/droned/lib/droned/models/droneserver.py DroneD.construct/original