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

// CookiePreferences CookiePreferences defines model for CookiePreferences.
//
// swagger:model CookiePreferences
type CookiePreferences struct {

	// analytics
	Analytics interface{} `json:"analytics,omitempty"`

	// functional
	Functional interface{} `json:"functional,omitempty"`

	// performance
	Performance interface{} `json:"performance,omitempty"`
}

// Validate validates this cookie preferences
func (m *CookiePreferences) Validate(formats strfmt.Registry) error {
	return nil
}

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

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

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