func (m *ActivityStreamActivitiesRequest) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
MarshalBinary interface implementation
package models
import (
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/swag"
)
type ActivityStreamActivitiesRequest struct {
	AsDigest bool `json:"AsDigest,omitempty"`
	BoxName string `json:"BoxName,omitempty"`
	Context ActivityStreamContext `json:"Context,omitempty"`
	ContextData string `json:"ContextData,omitempty"`
	Language string `json:"Language,omitempty"`
	Limit string `json:"Limit,omitempty"`
	Offset string `json:"Offset,omitempty"`
	PointOfView ActivitySummaryPointOfView `json:"PointOfView,omitempty"`
	StreamFilter string `json:"StreamFilter,omitempty"`
	UnreadCountOnly bool `json:"UnreadCountOnly,omitempty"`
}
func (m *ActivityStreamActivitiesRequest) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateContext(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validatePointOfView(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *ActivityStreamActivitiesRequest) validateContext(formats strfmt.Registry) error {
	if swag.IsZero(m.Context) {  
		return nil
	}
	if err := m.Context.Validate(formats); err != nil {
		if ve, ok := err.(*errors.Validation); ok {
			return ve.ValidateName("Context")
		}
		return err
	}
	return nil
}
func (m *ActivityStreamActivitiesRequest) validatePointOfView(formats strfmt.Registry) error {
	if swag.IsZero(m.PointOfView) {  
		return nil
	}
	if err := m.PointOfView.Validate(formats); err != nil {
		if ve, ok := err.(*errors.Validation); ok {
			return ve.ValidateName("PointOfView")
		}
		return err
	}
	return nil
}