code: func (o *TodoListAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer {
  
  	result := make(map[string]runtime.Consumer)
  	for _, mt := range mediaTypes {
  		switch mt {
  
  		case "application/io.goswagger.examples.todo-list.v1+json":
  			result["application/io.goswagger.examples.todo-list.v1+json"] = o.JSONConsumer
  
  		}
  
  		if c, ok := o.customConsumers[mt]; ok {
  			result[mt] = c
  		}
  	}
  	return result
  
  }
docs: // ConsumersFor gets the consumers for the specified media types