func (this TootVotersCountProperty) LessThan(o vocab.TootVotersCountProperty) 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.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() {
		return false
	} else if this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() {
		return false
	} else if !this.IsXMLSchemaNonNegativeInteger() && o.IsXMLSchemaNonNegativeInteger() {
		return true
	} else {
		return nonnegativeinteger.LessNonNegativeInteger(this.Get(), o.Get())
	}
}
LessThan compares two instances of this property with an arbitrary but stable
comparison. Applications should not use this because it is only meant to
help alternative implementations to go-fed to be able to normalize
nonfunctional properties.
package propertyvoterscount
import (
	"fmt"
	nonnegativeinteger "github.com/go-fed/activity/streams/values/nonNegativeInteger"
	vocab "github.com/go-fed/activity/streams/vocab"
	"net/url"
)
type TootVotersCountProperty struct {
	xmlschemaNonNegativeIntegerMember int
	hasNonNegativeIntegerMember       bool
	unknown                           interface{}
	iri                               *url.URL
	alias                             string
}
func DeserializeVotersCountProperty(m map[string]interface{}, aliasMap map[string]string) (*TootVotersCountProperty, error) {
	alias := ""
	if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok {
		alias = a
	}
	propName := "votersCount"
	if len(alias) > 0 {
		propName = fmt.Sprintf("%s:%s", alias, "votersCount")
	}
	i, ok := m[propName]
	if ok {
		if s, ok := i.(string); ok {
			u, err := url.Parse(s)
			if err == nil && len(u.Scheme) > 0 {
				this := &TootVotersCountProperty{
					alias: alias,
					iri:   u,
				}
				return this, nil
			}
		}
		if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil {
			this := &TootVotersCountProperty{
				alias:                             alias,
				hasNonNegativeIntegerMember:       true,
				xmlschemaNonNegativeIntegerMember: v,
			}
			return this, nil
		}
		this := &TootVotersCountProperty{
			alias:   alias,
			unknown: i,
		}
		return this, nil
	}
	return nil, nil
}
func NewTootVotersCountProperty() *TootVotersCountProperty {
	return &TootVotersCountProperty{alias: ""}
}
func (this *TootVotersCountProperty) Clear() {
	this.unknown = nil
	this.iri = nil
	this.hasNonNegativeIntegerMember = false
}
func (this TootVotersCountProperty) Get() int {
	return this.xmlschemaNonNegativeIntegerMember
}
func (this TootVotersCountProperty) GetIRI() *url.URL {
	return this.iri
}
func (this TootVotersCountProperty) HasAny() bool {
	return this.IsXMLSchemaNonNegativeInteger() || this.iri != nil
}
func (this TootVotersCountProperty) IsIRI() bool {
	return this.iri != nil
}
func (this TootVotersCountProperty) IsXMLSchemaNonNegativeInteger() bool {
	return this.hasNonNegativeIntegerMember
}
func (this TootVotersCountProperty) JSONLDContext() map[string]string {
	m := map[string]string{"http://joinmastodon.org/ns": this.alias}
	var child map[string]string
	for k, v := range child {
		m[k] = v
	}
	return m
}
func (this TootVotersCountProperty) KindIndex() int {
	if this.IsXMLSchemaNonNegativeInteger() {
		return 0
	}
	if this.IsIRI() {
		return -2
	}
	return -1
}