func NewAnchorEvent(opts ...Opt) *AnchorEventType {
	options := NewOptions(opts...)
	return &AnchorEventType{
		ObjectType: NewObject(
			WithContext(getContexts(options, ContextActivityAnchors)...),
			WithType(TypeAnchorEvent),
			WithPublishedTime(options.Published),
			WithURL(options.URL...),
			WithAttributedTo(options.AttributedTo),
			WithAttachment(options.Attachment...)),
		anchorEvent: &anchorEventType{
			Anchors: NewURLProperty(options.Anchors),
			Parent:  NewURLCollectionProperty(options.Parent...),
		},
	}
}
NewAnchorEvent returns a new Info type.
package vocab
import (
	"encoding/json"
	"fmt"
	"net/url"
	"github.com/trustbloc/sidetree-core-go/pkg/canonicalizer"
	orberrors "github.com/trustbloc/orb/pkg/errors"
	"github.com/trustbloc/orb/pkg/hashlink"
)
type AnchorEventType struct {
	*ObjectType
	anchorEvent *anchorEventType
}
type anchorEventType struct {
	Anchors *URLProperty           `json:"anchors,omitempty"`
	Parent  *URLCollectionProperty `json:"parent,omitempty"`
}