func (o *GetBackendOKBody) UnmarshalBinary(b []byte) error {
	var res GetBackendOKBody
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*o = res
	return nil
}
UnmarshalBinary interface implementation
package backend
import (
	"net/http"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime/middleware"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/haproxytech/client-native/v2/models"
)
type GetBackendHandlerFunc func(GetBackendParams, interface{}) middleware.Responder
func (fn GetBackendHandlerFunc) Handle(params GetBackendParams, principal interface{}) middleware.Responder {
	return fn(params, principal)
}
type GetBackendHandler interface {
	Handle(GetBackendParams, interface{}) middleware.Responder
}
func NewGetBackend(ctx *middleware.Context, handler GetBackendHandler) *GetBackend {
	return &GetBackend{Context: ctx, Handler: handler}
}
type GetBackend struct {
	Context *middleware.Context
	Handler GetBackendHandler
}
func (o *GetBackend) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
	route, rCtx, _ := o.Context.RouteInfo(r)
	if rCtx != nil {
		r = rCtx
	}
	var Params = NewGetBackendParams()
	uprinc, aCtx, err := o.Context.Authorize(r, route)
	if err != nil {
		o.Context.Respond(rw, r, route.Produces, route, err)
		return
	}
	if aCtx != nil {
		r = aCtx
	}
	var principal interface{}
	if uprinc != nil {
		principal = uprinc
	}
	if err := o.Context.BindValidRequest(r, route, &Params); err != nil {  
		o.Context.Respond(rw, r, route.Produces, route, err)
		return
	}
	res := o.Handler.Handle(Params, principal)  
	o.Context.Respond(rw, r, route.Produces, route, res)
}
type GetBackendOKBody struct {
	Version int64 `json:"_version,omitempty"`
	Data *models.Backend `json:"data,omitempty"`
}
func (o *GetBackendOKBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateData(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *GetBackendOKBody) validateData(formats strfmt.Registry) error {
	if swag.IsZero(o.Data) {  
		return nil
	}
	if o.Data != nil {
		if err := o.Data.Validate(formats); err != nil {
			if ve, ok := err.(*errors.Validation); ok {
				return ve.ValidateName("getBackendOK" + "." + "data")
			}
			return err
		}
	}
	return nil
}
func (o *GetBackendOKBody) MarshalBinary() ([]byte, error) {
	if o == nil {
		return nil, nil
	}
	return swag.WriteJSON(o)
}