code: func NewSerializerWithOptions(meta MetaFactory, creater runtime.ObjectCreater, typer runtime.ObjectTyper, options SerializerOptions) *Serializer {
  	return &Serializer{
  		meta:    meta,
  		creater: creater,
  		typer:   typer,
  		options: options,
  	}
  }
docs: // NewSerializerWithOptions creates a JSON/YAML serializer that handles encoding versioned objects into the proper JSON/YAML
  // form. If typer is not nil, the object has the group, version, and kind fields set. Options are copied into the Serializer
  // and are immutable.