func (o *GetTransactionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(200)
	payload := o.Payload
	if payload == nil {
		payload = models.Transactions{}
	}
	if err := producer.Produce(rw, payload); err != nil {
		panic(err)  
	}
}
WriteResponse to the client
package transactions
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetTransactionsOKCode int = 200
type GetTransactionsOK struct {
	Payload models.Transactions `json:"body,omitempty"`
}
func NewGetTransactionsOK() *GetTransactionsOK {
	return &GetTransactionsOK{}
}
func (o *GetTransactionsOK) WithPayload(payload models.Transactions) *GetTransactionsOK {
	o.Payload = payload
	return o
}
func (o *GetTransactionsOK) SetPayload(payload models.Transactions) {
	o.Payload = payload
}