func (this ForgeFedFilesModifiedPropertyIterator) serialize() (interface{}, error) {
	if this.IsXMLSchemaString() {
		return string1.SerializeString(this.Get())
	} else if this.IsIRI() {
		return this.iri.String(), nil
	}
	return this.unknown, nil
}
serialize converts this into an interface representation suitable for
marshalling into a text or binary format. Applications should not need this
function as most typical use cases serialize types instead of individual
properties. It is exposed for alternatives to go-fed implementations to use.
package propertyfilesmodified
import (
	"fmt"
	string1 "github.com/go-fed/activity/streams/values/string"
	vocab "github.com/go-fed/activity/streams/vocab"
	"net/url"
)
type ForgeFedFilesModifiedPropertyIterator struct {
	xmlschemaStringMember string
	hasStringMember       bool
	unknown               interface{}
	iri                   *url.URL
	alias                 string
	myIdx                 int
	parent                vocab.ForgeFedFilesModifiedProperty
}
func NewForgeFedFilesModifiedPropertyIterator() *ForgeFedFilesModifiedPropertyIterator {
	return &ForgeFedFilesModifiedPropertyIterator{alias: ""}
}
func deserializeForgeFedFilesModifiedPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedFilesModifiedPropertyIterator, 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 := &ForgeFedFilesModifiedPropertyIterator{
				alias: alias,
				iri:   u,
			}
			return this, nil
		}
	}
	if v, err := string1.DeserializeString(i); err == nil {
		this := &ForgeFedFilesModifiedPropertyIterator{
			alias:                 alias,
			hasStringMember:       true,
			xmlschemaStringMember: v,
		}
		return this, nil
	}
	this := &ForgeFedFilesModifiedPropertyIterator{
		alias:   alias,
		unknown: i,
	}
	return this, nil
}
func (this ForgeFedFilesModifiedPropertyIterator) Get() string {
	return this.xmlschemaStringMember
}
func (this ForgeFedFilesModifiedPropertyIterator) GetIRI() *url.URL {
	return this.iri
}
func (this ForgeFedFilesModifiedPropertyIterator) HasAny() bool {
	return this.IsXMLSchemaString() || this.iri != nil
}
func (this ForgeFedFilesModifiedPropertyIterator) IsIRI() bool {
	return this.iri != nil
}
func (this ForgeFedFilesModifiedPropertyIterator) IsXMLSchemaString() bool {
	return this.hasStringMember
}
func (this ForgeFedFilesModifiedPropertyIterator) JSONLDContext() map[string]string {
	m := map[string]string{"https://forgefed.peers.community/ns": this.alias}
	var child map[string]string
	for k, v := range child {
		m[k] = v
	}
	return m
}
func (this ForgeFedFilesModifiedPropertyIterator) KindIndex() int {
	if this.IsXMLSchemaString() {
		return 0
	}
	if this.IsIRI() {
		return -2
	}
	return -1
}
func (this ForgeFedFilesModifiedPropertyIterator) LessThan(o vocab.ForgeFedFilesModifiedPropertyIterator) bool {
	if this.IsIRI() && o.IsIRI() {
		return this.iri.String() < o.GetIRI().String()
	} else if this.IsIRI() {
		return true
	} else if o.IsIRI() {
		return false
	}
	if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() {
		return false
	} else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() {
		return false
	} else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() {
		return true
	} else {
		return string1.LessString(this.Get(), o.Get())
	}
}
func (this ForgeFedFilesModifiedPropertyIterator) Name() string {
	if len(this.alias) > 0 {
		return this.alias + ":" + "ForgeFedFilesModified"
	} else {
		return "ForgeFedFilesModified"
	}
}
func (this ForgeFedFilesModifiedPropertyIterator) Next() vocab.ForgeFedFilesModifiedPropertyIterator {
	if this.myIdx+1 >= this.parent.Len() {
		return nil
	} else {
		return this.parent.At(this.myIdx + 1)
	}
}
func (this ForgeFedFilesModifiedPropertyIterator) Prev() vocab.ForgeFedFilesModifiedPropertyIterator {
	if this.myIdx-1 < 0 {
		return nil
	} else {
		return this.parent.At(this.myIdx - 1)
	}
}
func (this *ForgeFedFilesModifiedPropertyIterator) Set(v string) {
	this.clear()
	this.xmlschemaStringMember = v
	this.hasStringMember = true
}
func (this *ForgeFedFilesModifiedPropertyIterator) SetIRI(v *url.URL) {
	this.clear()
	this.iri = v
}
func (this *ForgeFedFilesModifiedPropertyIterator) clear() {
	this.unknown = nil
	this.iri = nil
	this.hasStringMember = false
}