code: func (f CodecFactory) SerializerForMediaType(mediaType string, options map[string]string) (runtime.Serializer, bool) {
  	for _, s := range f.serializers {
  		for _, accepted := range s.AcceptContentTypes {
  			if accepted == mediaType {
  				if v, ok := options["pretty"]; ok && v == "1" && s.PrettySerializer != nil {
  					return s.PrettySerializer, true
  				}
  				return s.Serializer, true
  			}
  		}
  	}
  	return nil, false
  }
docs: // SerializerForMediaType returns a serializer that matches the provided RFC2046 mediaType, or false if no such
  // serializer exists