// 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"
)

// CommonDoors common doors
//
// swagger:model common.Doors
type CommonDoors struct {

	// hood
	Hood bool `json:"hood,omitempty"`

	// left front
	LeftFront bool `json:"left_front,omitempty"`

	// left rear
	LeftRear bool `json:"left_rear,omitempty"`

	// right front
	RightFront bool `json:"right_front,omitempty"`

	// right rear
	RightRear bool `json:"right_rear,omitempty"`

	// trunk
	Trunk bool `json:"trunk,omitempty"`
}

// Validate validates this common doors
func (m *CommonDoors) Validate(formats strfmt.Registry) error {
	return nil
}

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

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

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