func (this ForgeFedDependsOnPropertyIterator) HasAny() bool {
	return this.IsForgeFedTicket() || this.iri != nil
}
HasAny returns true if the value or IRI is set.
package propertydependson
import (
	"fmt"
	vocab "github.com/go-fed/activity/streams/vocab"
	"net/url"
)
type ForgeFedDependsOnPropertyIterator struct {
	forgefedTicketMember vocab.ForgeFedTicket
	unknown              interface{}
	iri                  *url.URL
	alias                string
	myIdx                int
	parent               vocab.ForgeFedDependsOnProperty
}
func NewForgeFedDependsOnPropertyIterator() *ForgeFedDependsOnPropertyIterator {
	return &ForgeFedDependsOnPropertyIterator{alias: ""}
}
func deserializeForgeFedDependsOnPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedDependsOnPropertyIterator, error) {
	alias := ""
	if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok {
		alias = a
	}
	if s, ok := i.(string); ok {
		u, err := url.Parse(s)
		if err == nil && len(u.Scheme) > 0 {
			this := &ForgeFedDependsOnPropertyIterator{
				alias: alias,
				iri:   u,
			}
			return this, nil
		}
	}
	if m, ok := i.(map[string]interface{}); ok {
		if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
			this := &ForgeFedDependsOnPropertyIterator{
				alias:                alias,
				forgefedTicketMember: v,
			}
			return this, nil
		}
	}
	this := &ForgeFedDependsOnPropertyIterator{
		alias:   alias,
		unknown: i,
	}
	return this, nil
}
func (this ForgeFedDependsOnPropertyIterator) Get() vocab.ForgeFedTicket {
	return this.forgefedTicketMember
}
func (this ForgeFedDependsOnPropertyIterator) GetIRI() *url.URL {
	return this.iri
}
func (this ForgeFedDependsOnPropertyIterator) GetType() vocab.Type {
	if this.IsForgeFedTicket() {
		return this.Get()
	}
	return nil
}