// Code generated by go-swagger; DO NOT EDIT.

package models

import (
	"context"

	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// ABitOfEverythingServiceUpdateEntityBody UpdateEntityRequest exercises the case where a body message contains a
// nested message field whose only sub-field is bound to a path parameter.
// With body: "*" the id field reduces to an empty object and should be
// omitted from the generated body schema, while other_field remains.
//
// swagger:model ABitOfEverythingServiceUpdateEntityBody
type ABitOfEverythingServiceUpdateEntityBody struct {

	// other field
	OtherField string `json:"otherField,omitempty"`
}

// Validate validates this a bit of everything service update entity body
func (m *ABitOfEverythingServiceUpdateEntityBody) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this a bit of everything service update entity body based on context it is used
func (m *ABitOfEverythingServiceUpdateEntityBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *ABitOfEverythingServiceUpdateEntityBody) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *ABitOfEverythingServiceUpdateEntityBody) UnmarshalBinary(b []byte) error {
	var res ABitOfEverythingServiceUpdateEntityBody
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
