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

// ConversationFilter conversation filter
//
// swagger:model ConversationFilter
type ConversationFilter struct {

	// from endpoint
	FromEndpoint string `json:"fromEndpoint,omitempty"`

	// from operator
	FromOperator string `json:"fromOperator,omitempty"`

	// include or exclude
	IncludeOrExclude string `json:"includeOrExclude,omitempty"`

	// to endpoint
	ToEndpoint string `json:"toEndpoint,omitempty"`

	// to operator
	ToOperator string `json:"toOperator,omitempty"`
}

// Validate validates this conversation filter
func (m *ConversationFilter) Validate(formats strfmt.Registry) error {
	return nil
}

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

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

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