code: func (f CodecFactory) LegacyCodec(version ...unversioned.GroupVersion) runtime.Codec {
  	return f.CodecForVersions(runtime.NewCodec(f.legacySerializer, f.universal), version, nil)
  }
docs: // LegacyCodec encodes output to a given API version, and decodes output into the internal form from
  // any recognized source. The returned codec will always encode output to JSON.
  //
  // This method is deprecated - clients and servers should negotiate a serializer by mime-type and
  // invoke CodecForVersions. Callers that need only to read data should use UniversalDecoder().