public Map<String,Object> toMap() {
            Map<String,Object> map = new HashMap<String,Object>();
            map.put("uuid", this.uuid == null ? "" : this.uuid);
            map.put("master", this.master == null ? new PIF("OpaqueRef:NULL") : this.master);
            map.put("slaves", this.slaves == null ? new LinkedHashSet<PIF>() : this.slaves);
            map.put("other_config", this.otherConfig == null ? new HashMap<String, String>() : this.otherConfig);
            map.put("primary_slave", this.primarySlave == null ? new PIF("OpaqueRef:NULL") : this.primarySlave);
            map.put("mode", this.mode == null ? Types.BondMode.UNRECOGNIZED : this.mode);
            map.put("properties", this.properties == null ? new HashMap<String, String>() : this.properties);
            map.put("links_up", this.linksUp == null ? 0 : this.linksUp);
            return map;
        }