func (o *PostTxsBody) MarshalBinary() ([]byte, error) {
	if o == nil {
		return nil, nil
	}
	return swag.WriteJSON(o)
}
MarshalBinary interface implementation
package transactions
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 PostTxsReader struct {
	formats strfmt.Registry
}
func (o *PostTxsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewPostTxsOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 500:
		result := NewPostTxsInternalServerError()
		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 NewPostTxsOK() *PostTxsOK {
	return &PostTxsOK{}
}
type PostTxsOK struct {
	Payload *models.BroadcastTxCommitResult
}
func (o *PostTxsOK) Error() string {
	return fmt.Sprintf("[POST /txs][%d] postTxsOK  %+v", 200, o.Payload)
}
func (o *PostTxsOK) GetPayload() *models.BroadcastTxCommitResult {
	return o.Payload
}
func (o *PostTxsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.BroadcastTxCommitResult)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewPostTxsInternalServerError() *PostTxsInternalServerError {
	return &PostTxsInternalServerError{}
}
type PostTxsInternalServerError struct {
}
func (o *PostTxsInternalServerError) Error() string {
	return fmt.Sprintf("[POST /txs][%d] postTxsInternalServerError ", 500)
}
func (o *PostTxsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
type PostTxsBody struct {
	Mode string `json:"mode,omitempty"`
	Tx *models.StdTx `json:"tx,omitempty"`
}
func (o *PostTxsBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateTx(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *PostTxsBody) validateTx(formats strfmt.Registry) error {
	if swag.IsZero(o.Tx) {  
		return nil
	}
	if o.Tx != nil {
		if err := o.Tx.Validate(formats); err != nil {
			if ve, ok := err.(*errors.Validation); ok {
				return ve.ValidateName("txBroadcast" + "." + "tx")
			}
			return err
		}
	}
	return nil
}