func (m *VolumeCreateConfig) UnmarshalBinary(b []byte) error {
	var res VolumeCreateConfig
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
UnmarshalBinary interface implementation
package types
import (
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/swag"
)
type VolumeCreateConfig struct {
	Driver string `json:"Driver,omitempty"`
	DriverOpts map[string]string `json:"DriverOpts,omitempty"`
	Labels map[string]string `json:"Labels,omitempty"`
	Name string `json:"Name,omitempty"`
}
func (m *VolumeCreateConfig) Validate(formats strfmt.Registry) error {
	var res []error
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *VolumeCreateConfig) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}