func (m *RestBulkMetaResponse) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
MarshalBinary interface implementation
package models
import (
	"strconv"
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/swag"
)
type RestBulkMetaResponse struct {
	Nodes []*TreeNode `json:"Nodes"`
	Pagination *RestPagination `json:"Pagination,omitempty"`
}
func (m *RestBulkMetaResponse) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateNodes(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validatePagination(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *RestBulkMetaResponse) validateNodes(formats strfmt.Registry) error {
	if swag.IsZero(m.Nodes) {  
		return nil
	}
	for i := 0; i < len(m.Nodes); i++ {
		if swag.IsZero(m.Nodes[i]) {  
			continue
		}
		if m.Nodes[i] != nil {
			if err := m.Nodes[i].Validate(formats); err != nil {
				if ve, ok := err.(*errors.Validation); ok {
					return ve.ValidateName("Nodes" + "." + strconv.Itoa(i))
				}
				return err
			}
		}
	}
	return nil
}
func (m *RestBulkMetaResponse) validatePagination(formats strfmt.Registry) error {
	if swag.IsZero(m.Pagination) {  
		return nil
	}
	if m.Pagination != nil {
		if err := m.Pagination.Validate(formats); err != nil {
			if ve, ok := err.(*errors.Validation); ok {
				return ve.ValidateName("Pagination")
			}
			return err
		}
	}
	return nil
}