@classmethod
def hydrate(cls, subnet):
    subnet = cls(**subnet)
    subnet['dns'] = [IP.hydrate(dns) for dns in subnet['dns']]
    subnet['ips'] = [FixedIP.hydrate(ip) for ip in subnet['ips']]
    subnet['routes'] = [Route.hydrate(route) for route in subnet['routes']]
    subnet['gateway'] = IP.hydrate(subnet['gateway'])
    return subnet
@classmethod
def hydrate(cls, subnet):
    subnet = cls(**subnet)
    subnet['dns'] = [IP.hydrate(dns) for dns in subnet['dns']]
    subnet['ips'] = [FixedIP.hydrate(ip) for ip in subnet['ips']]
    subnet['routes'] = [Route.hydrate(route) for route in subnet['routes']]
    subnet['gateway'] = IP.hydrate(subnet['gateway'])
    return subnet