func (o *GetSlashingValidatorsValidatorPubKeySigningInfoOKBody) MarshalBinary() ([]byte, error) {
	if o == nil {
		return nil, nil
	}
	return swag.WriteJSON(o)
}
MarshalBinary interface implementation
package slashing
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 GetSlashingValidatorsValidatorPubKeySigningInfoReader struct {
	formats strfmt.Registry
}
func (o *GetSlashingValidatorsValidatorPubKeySigningInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetSlashingValidatorsValidatorPubKeySigningInfoOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 204:
		result := NewGetSlashingValidatorsValidatorPubKeySigningInfoNoContent()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetSlashingValidatorsValidatorPubKeySigningInfoBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetSlashingValidatorsValidatorPubKeySigningInfoInternalServerError()
		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 NewGetSlashingValidatorsValidatorPubKeySigningInfoOK() *GetSlashingValidatorsValidatorPubKeySigningInfoOK {
	return &GetSlashingValidatorsValidatorPubKeySigningInfoOK{}
}
type GetSlashingValidatorsValidatorPubKeySigningInfoOK struct {
	Payload *GetSlashingValidatorsValidatorPubKeySigningInfoOKBody
}
func (o *GetSlashingValidatorsValidatorPubKeySigningInfoOK) Error() string {
	return fmt.Sprintf("[GET /slashing/validators/{validatorPubKey}/signing_info][%d] getSlashingValidatorsValidatorPubKeySigningInfoOK  %+v", 200, o.Payload)
}
func (o *GetSlashingValidatorsValidatorPubKeySigningInfoOK) GetPayload() *GetSlashingValidatorsValidatorPubKeySigningInfoOKBody {
	return o.Payload
}
func (o *GetSlashingValidatorsValidatorPubKeySigningInfoOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(GetSlashingValidatorsValidatorPubKeySigningInfoOKBody)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetSlashingValidatorsValidatorPubKeySigningInfoNoContent() *GetSlashingValidatorsValidatorPubKeySigningInfoNoContent {
	return &GetSlashingValidatorsValidatorPubKeySigningInfoNoContent{}
}
type GetSlashingValidatorsValidatorPubKeySigningInfoNoContent struct {
}
func (o *GetSlashingValidatorsValidatorPubKeySigningInfoNoContent) Error() string {
	return fmt.Sprintf("[GET /slashing/validators/{validatorPubKey}/signing_info][%d] getSlashingValidatorsValidatorPubKeySigningInfoNoContent ", 204)
}
func (o *GetSlashingValidatorsValidatorPubKeySigningInfoNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewGetSlashingValidatorsValidatorPubKeySigningInfoBadRequest() *GetSlashingValidatorsValidatorPubKeySigningInfoBadRequest {
	return &GetSlashingValidatorsValidatorPubKeySigningInfoBadRequest{}
}
type GetSlashingValidatorsValidatorPubKeySigningInfoBadRequest struct {
}
func (o *GetSlashingValidatorsValidatorPubKeySigningInfoBadRequest) Error() string {
	return fmt.Sprintf("[GET /slashing/validators/{validatorPubKey}/signing_info][%d] getSlashingValidatorsValidatorPubKeySigningInfoBadRequest ", 400)
}
func (o *GetSlashingValidatorsValidatorPubKeySigningInfoBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewGetSlashingValidatorsValidatorPubKeySigningInfoInternalServerError() *GetSlashingValidatorsValidatorPubKeySigningInfoInternalServerError {
	return &GetSlashingValidatorsValidatorPubKeySigningInfoInternalServerError{}
}
type GetSlashingValidatorsValidatorPubKeySigningInfoInternalServerError struct {
}
func (o *GetSlashingValidatorsValidatorPubKeySigningInfoInternalServerError) Error() string {
	return fmt.Sprintf("[GET /slashing/validators/{validatorPubKey}/signing_info][%d] getSlashingValidatorsValidatorPubKeySigningInfoInternalServerError ", 500)
}
func (o *GetSlashingValidatorsValidatorPubKeySigningInfoInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
type GetSlashingValidatorsValidatorPubKeySigningInfoOKBody struct {
	Height string `json:"height,omitempty"`
	Result *models.SigningInfo `json:"result,omitempty"`
}
func (o *GetSlashingValidatorsValidatorPubKeySigningInfoOKBody) 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 *GetSlashingValidatorsValidatorPubKeySigningInfoOKBody) 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("getSlashingValidatorsValidatorPubKeySigningInfoOK" + "." + "result")
			}
			return err
		}
	}
	return nil
}