func (m *CheckTxResult) UnmarshalBinary(b []byte) error {
	var res CheckTxResult
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
UnmarshalBinary interface implementation
package models
import (
	"strconv"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)
type CheckTxResult struct {
	Code int64 `json:"code,omitempty"`
	Data string `json:"data,omitempty"`
	GasUsed int64 `json:"gas_used,omitempty"`
	GasWanted int64 `json:"gas_wanted,omitempty"`
	Info string `json:"info,omitempty"`
	Log string `json:"log,omitempty"`
	Tags []*KVPair `json:"tags"`
}
func (m *CheckTxResult) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateTags(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *CheckTxResult) validateTags(formats strfmt.Registry) error {
	if swag.IsZero(m.Tags) {  
		return nil
	}
	for i := 0; i < len(m.Tags); i++ {
		if swag.IsZero(m.Tags[i]) {  
			continue
		}
		if m.Tags[i] != nil {
			if err := m.Tags[i].Validate(formats); err != nil {
				if ve, ok := err.(*errors.Validation); ok {
					return ve.ValidateName("tags" + "." + strconv.Itoa(i))
				}
				return err
			}
		}
	}
	return nil
}
func (m *CheckTxResult) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}