func (m *ProcessConfig) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
MarshalBinary interface implementation
package types
import (
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)
type ProcessConfig struct {
	Arguments []string `json:"arguments"`
	Entrypoint string `json:"entrypoint"`
	Privileged bool `json:"privileged"`
	Tty bool `json:"tty"`
	User string `json:"user"`
}
func (m *ProcessConfig) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateArguments(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateEntrypoint(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validatePrivileged(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateTty(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateUser(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *ProcessConfig) validateArguments(formats strfmt.Registry) error {
	if err := validate.Required("arguments", "body", m.Arguments); err != nil {
		return err
	}
	return nil
}
func (m *ProcessConfig) validateEntrypoint(formats strfmt.Registry) error {
	if err := validate.RequiredString("entrypoint", "body", string(m.Entrypoint)); err != nil {
		return err
	}
	return nil
}
func (m *ProcessConfig) validatePrivileged(formats strfmt.Registry) error {
	if err := validate.Required("privileged", "body", bool(m.Privileged)); err != nil {
		return err
	}
	return nil
}
func (m *ProcessConfig) validateTty(formats strfmt.Registry) error {
	if err := validate.Required("tty", "body", bool(m.Tty)); err != nil {
		return err
	}
	return nil
}
func (m *ProcessConfig) validateUser(formats strfmt.Registry) error {
	if err := validate.RequiredString("user", "body", string(m.User)); err != nil {
		return err
	}
	return nil
}