// 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" ) // CommonSafeState common safe state // // swagger:model common.SafeState type CommonSafeState struct { // mcu front inverter error McuFrontInverterError bool `json:"mcu_front_inverter_error,omitempty"` // mcu front safe state McuFrontSafeState bool `json:"mcu_front_safe_state,omitempty"` // mcu rear decoup state McuRearDecoupState bool `json:"mcu_rear_decoup_state,omitempty"` // mcu rear inverter error McuRearInverterError bool `json:"mcu_rear_inverter_error,omitempty"` // mcu rear safe state McuRearSafeState bool `json:"mcu_rear_safe_state,omitempty"` // vcu safe state VcuSafeState bool `json:"vcu_safe_state,omitempty"` // vehicle safe state VehicleSafeState bool `json:"vehicle_safe_state,omitempty"` } // Validate validates this common safe state func (m *CommonSafeState) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this common safe state based on context it is used func (m *CommonSafeState) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *CommonSafeState) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *CommonSafeState) UnmarshalBinary(b []byte) error { var res CommonSafeState if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil }