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

package models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"context"

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

// CommonMiscWindows common misc windows
//
// swagger:model common.MiscWindows
type CommonMiscWindows struct {

	// left rear quarter
	LeftRearQuarter int64 `json:"left_rear_quarter,omitempty"`

	// rear windshield
	RearWindshield int64 `json:"rear_windshield,omitempty"`

	// right rear quarter
	RightRearQuarter int64 `json:"right_rear_quarter,omitempty"`
}

// Validate validates this common misc windows
func (m *CommonMiscWindows) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this common misc windows based on context it is used
func (m *CommonMiscWindows) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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