func (o *GetDistributionDelegatorsDelegatorAddrWithdrawAddressOKBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateResult(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this get distribution delegators delegator addr withdraw address o k body
package distribution
import (
	"fmt"
	"io"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/terra-project/mantle-sdk/lcd/models"
)
type GetDistributionDelegatorsDelegatorAddrWithdrawAddressReader struct {
	formats strfmt.Registry
}
func (o *GetDistributionDelegatorsDelegatorAddrWithdrawAddressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetDistributionDelegatorsDelegatorAddrWithdrawAddressOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetDistributionDelegatorsDelegatorAddrWithdrawAddressBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetDistributionDelegatorsDelegatorAddrWithdrawAddressInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
	}
}
func NewGetDistributionDelegatorsDelegatorAddrWithdrawAddressOK() *GetDistributionDelegatorsDelegatorAddrWithdrawAddressOK {
	return &GetDistributionDelegatorsDelegatorAddrWithdrawAddressOK{}
}
type GetDistributionDelegatorsDelegatorAddrWithdrawAddressOK struct {
	Payload *GetDistributionDelegatorsDelegatorAddrWithdrawAddressOKBody
}
func (o *GetDistributionDelegatorsDelegatorAddrWithdrawAddressOK) Error() string {
	return fmt.Sprintf("[GET /distribution/delegators/{delegatorAddr}/withdraw_address][%d] getDistributionDelegatorsDelegatorAddrWithdrawAddressOK  %+v", 200, o.Payload)
}
func (o *GetDistributionDelegatorsDelegatorAddrWithdrawAddressOK) GetPayload() *GetDistributionDelegatorsDelegatorAddrWithdrawAddressOKBody {
	return o.Payload
}
func (o *GetDistributionDelegatorsDelegatorAddrWithdrawAddressOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(GetDistributionDelegatorsDelegatorAddrWithdrawAddressOKBody)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetDistributionDelegatorsDelegatorAddrWithdrawAddressBadRequest() *GetDistributionDelegatorsDelegatorAddrWithdrawAddressBadRequest {
	return &GetDistributionDelegatorsDelegatorAddrWithdrawAddressBadRequest{}
}
type GetDistributionDelegatorsDelegatorAddrWithdrawAddressBadRequest struct {
}
func (o *GetDistributionDelegatorsDelegatorAddrWithdrawAddressBadRequest) Error() string {
	return fmt.Sprintf("[GET /distribution/delegators/{delegatorAddr}/withdraw_address][%d] getDistributionDelegatorsDelegatorAddrWithdrawAddressBadRequest ", 400)
}
func (o *GetDistributionDelegatorsDelegatorAddrWithdrawAddressBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewGetDistributionDelegatorsDelegatorAddrWithdrawAddressInternalServerError() *GetDistributionDelegatorsDelegatorAddrWithdrawAddressInternalServerError {
	return &GetDistributionDelegatorsDelegatorAddrWithdrawAddressInternalServerError{}
}
type GetDistributionDelegatorsDelegatorAddrWithdrawAddressInternalServerError struct {
}
func (o *GetDistributionDelegatorsDelegatorAddrWithdrawAddressInternalServerError) Error() string {
	return fmt.Sprintf("[GET /distribution/delegators/{delegatorAddr}/withdraw_address][%d] getDistributionDelegatorsDelegatorAddrWithdrawAddressInternalServerError ", 500)
}
func (o *GetDistributionDelegatorsDelegatorAddrWithdrawAddressInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
type GetDistributionDelegatorsDelegatorAddrWithdrawAddressOKBody struct {
	Height string `json:"height,omitempty"`
	Result models.Address `json:"result,omitempty"`
}