code: func NewSerializer(meta MetaFactory, creater runtime.ObjectCreater, typer runtime.Typer, pretty bool) runtime.Serializer {
  	return &Serializer{
  		meta:    meta,
  		creater: creater,
  		typer:   typer,
  		yaml:    false,
  		pretty:  pretty,
  	}
  }
docs: // NewSerializer creates a JSON serializer that handles encoding versioned objects into the proper JSON form. If typer
  // is not nil, the object has the group, version, and kind fields set.