func (m *PrivateCancelAllResponse) UnmarshalBinary(b []byte) error {
	var res PrivateCancelAllResponse
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
UnmarshalBinary interface implementation
package models
import (
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)
type PrivateCancelAllResponse struct {
	BaseMessage
	PrivateCancelAllResponseAllOf1
	Result *float64 `json:"result"`
}
func (m *PrivateCancelAllResponse) UnmarshalJSON(raw []byte) error {
	var aO0 BaseMessage
	if err := swag.ReadJSON(raw, &aO0); err != nil {
		return err
	}
	m.BaseMessage = aO0
	var aO1 PrivateCancelAllResponseAllOf1
	if err := swag.ReadJSON(raw, &aO1); err != nil {
		return err
	}
	m.PrivateCancelAllResponseAllOf1 = aO1
	var dataAO2 struct {
		Result *float64 `json:"result"`
	}
	if err := swag.ReadJSON(raw, &dataAO2); err != nil {
		return err
	}
	m.Result = dataAO2.Result
	return nil
}
func (m PrivateCancelAllResponse) MarshalJSON() ([]byte, error) {
	_parts := make([][]byte, 0, 3)
	aO0, err := swag.WriteJSON(m.BaseMessage)
	if err != nil {
		return nil, err
	}
	_parts = append(_parts, aO0)
	aO1, err := swag.WriteJSON(m.PrivateCancelAllResponseAllOf1)
	if err != nil {
		return nil, err
	}
	_parts = append(_parts, aO1)
	var dataAO2 struct {
		Result *float64 `json:"result"`
	}
	dataAO2.Result = m.Result
	jsonDataAO2, errAO2 := swag.WriteJSON(dataAO2)
	if errAO2 != nil {
		return nil, errAO2
	}
	_parts = append(_parts, jsonDataAO2)
	return swag.ConcatJSON(_parts...), nil
}
func (m *PrivateCancelAllResponse) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.BaseMessage.Validate(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateResult(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *PrivateCancelAllResponse) validateResult(formats strfmt.Registry) error {
	if err := validate.Required("result", "body", m.Result); err != nil {
		return err
	}
	return nil
}
func (m *PrivateCancelAllResponse) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}