func (m *EndpointSettings) 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"
)
type EndpointSettings struct {
	Aliases []string `json:"Aliases"`
	DriverOpts map[string]string `json:"DriverOpts,omitempty"`
	EndpointID string `json:"EndpointID,omitempty"`
	Gateway string `json:"Gateway,omitempty"`
	GlobalIPV6Address string `json:"GlobalIPv6Address,omitempty"`
	GlobalIPV6PrefixLen int64 `json:"GlobalIPv6PrefixLen,omitempty"`
	IPAMConfig *EndpointIPAMConfig `json:"IPAMConfig,omitempty"`
	IPAddress string `json:"IPAddress,omitempty"`
	IPPrefixLen int64 `json:"IPPrefixLen,omitempty"`
	IPV6Gateway string `json:"IPv6Gateway,omitempty"`
	Links []string `json:"Links"`
	MacAddress string `json:"MacAddress,omitempty"`
	NetworkID string `json:"NetworkID,omitempty"`
}
func (m *EndpointSettings) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateAliases(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateIPAMConfig(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateLinks(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *EndpointSettings) validateAliases(formats strfmt.Registry) error {
	if swag.IsZero(m.Aliases) {  
		return nil
	}
	return nil
}
func (m *EndpointSettings) validateIPAMConfig(formats strfmt.Registry) error {
	if swag.IsZero(m.IPAMConfig) {  
		return nil
	}
	if m.IPAMConfig != nil {
		if err := m.IPAMConfig.Validate(formats); err != nil {
			if ve, ok := err.(*errors.Validation); ok {
				return ve.ValidateName("IPAMConfig")
			}
			return err
		}
	}
	return nil
}
func (m *EndpointSettings) validateLinks(formats strfmt.Registry) error {
	if swag.IsZero(m.Links) {  
		return nil
	}
	return nil
}