@classmethod
def hydrate(cls, network):
    if network:
        network = cls(**network)
        network['subnets'] = [Subnet.hydrate(subnet) for subnet in network['subnets']]
    return network
@classmethod
def hydrate(cls, network):
    if network:
        network = cls(**network)
        network['subnets'] = [Subnet.hydrate(subnet) for subnet in network['subnets']]
    return network