code: func ConfListFromConf(original *NetworkConfig) (*NetworkConfigList, error) {
  	// Re-deserialize the config's json, then make a raw map configlist.
  	// This may seem a bit strange, but it's to make the Bytes fields
  	// actually make sense. Otherwise, the generated json is littered with
  	// golang default values.
  
  	rawConfig := make(map[string]interface{})
  	if err := json.Unmarshal(original.Bytes, &rawConfig); err != nil {
  		return nil, err
  	}
  
  	rawConfigList := map[string]interface{}{
  		"name":       original.Network.Name,
  		"cniVersion": original.Network.CNIVersion,
  		"plugins":    []interface{}{rawConfig},
  	}
  
  	b, err := json.Marshal(rawConfigList)
  	if err != nil {
  		return nil, err
  	}
  	return ConfListFromBytes(b)
  }
docs: // ConfListFromConf "upconverts" a network config in to a NetworkConfigList,
  // with the single network as the only entry in the list.