func (o *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOKBody) MarshalBinary() ([]byte, error) {
	if o == nil {
		return nil, nil
	}
	return swag.WriteJSON(o)
}
MarshalBinary interface implementation
package staking
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 GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrReader struct {
	formats strfmt.Registry
}
func (o *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrInternalServerError()
		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 NewGetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOK() *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOK {
	return &GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOK{}
}
type GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOK struct {
	Payload *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOKBody
}
func (o *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOK) Error() string {
	return fmt.Sprintf("[GET /staking/delegators/{delegatorAddr}/unbonding_delegations/{validatorAddr}][%d] getStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOK  %+v", 200, o.Payload)
}
func (o *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOK) GetPayload() *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOKBody {
	return o.Payload
}
func (o *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOKBody)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrBadRequest() *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrBadRequest {
	return &GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrBadRequest{}
}
type GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrBadRequest struct {
}
func (o *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrBadRequest) Error() string {
	return fmt.Sprintf("[GET /staking/delegators/{delegatorAddr}/unbonding_delegations/{validatorAddr}][%d] getStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrBadRequest ", 400)
}
func (o *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewGetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrInternalServerError() *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrInternalServerError {
	return &GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrInternalServerError{}
}
type GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrInternalServerError struct {
}
func (o *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrInternalServerError) Error() string {
	return fmt.Sprintf("[GET /staking/delegators/{delegatorAddr}/unbonding_delegations/{validatorAddr}][%d] getStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrInternalServerError ", 500)
}
func (o *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
type GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOKBody struct {
	Height string `json:"height,omitempty"`
	Result *models.UnbondingDelegation `json:"result,omitempty"`
}
func (o *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOKBody) 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
}
func (o *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOKBody) validateResult(formats strfmt.Registry) error {
	if swag.IsZero(o.Result) {  
		return nil
	}
	if o.Result != nil {
		if err := o.Result.Validate(formats); err != nil {
			if ve, ok := err.(*errors.Validation); ok {
				return ve.ValidateName("getStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOK" + "." + "result")
			}
			return err
		}
	}
	return nil
}