code: func SerializeObject(mediaType string, encoder runtime.Encoder, innerW http.ResponseWriter, req *http.Request, statusCode int, object runtime.Object) {
  	w := httpResponseWriterWithInit{mediaType: mediaType, innerW: innerW, statusCode: statusCode}
  
  	if err := encoder.Encode(object, w); err != nil {
  		errSerializationFatal(err, encoder, w)
  	}
  }
docs: // SerializeObject renders an object in the content type negotiated by the client using the provided encoder.
  // The context is optional and can be nil.