code: def to_dict(self):
          
          if self.id:
              return {"id": self.id}
          return {"type": self.type, "ipVersion": self.ip_version}
docs: Convert this VirtualIP to a dict representation for passing
          to the API.