func (m *DataUpdate) UnmarshalBinary(b []byte) error {
	var res DataUpdate
	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 DataUpdate struct {
	Value Any `json:"value"`
}
func (m *DataUpdate) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateValue(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *DataUpdate) validateValue(formats strfmt.Registry) error {
	if err := validate.Required("value", "body", m.Value); err != nil {
		return err
	}
	return nil
}
func (m *DataUpdate) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}