func (this *TootBlurhashProperty) SetIRI(v *url.URL) {
	this.Clear()
	this.iri = v
}
SetIRI sets the value of this property. Calling IsIRI afterwards will return
true.
package propertyblurhash
import (
	"fmt"
	string1 "github.com/go-fed/activity/streams/values/string"
	vocab "github.com/go-fed/activity/streams/vocab"
	"net/url"
)
type TootBlurhashProperty struct {
	xmlschemaStringMember string
	hasStringMember       bool
	unknown               interface{}
	iri                   *url.URL
	alias                 string
}
func DeserializeBlurhashProperty(m map[string]interface{}, aliasMap map[string]string) (*TootBlurhashProperty, error) {
	alias := ""
	if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok {
		alias = a
	}
	propName := "blurhash"
	if len(alias) > 0 {
		propName = fmt.Sprintf("%s:%s", alias, "blurhash")
	}
	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 := &TootBlurhashProperty{
					alias: alias,
					iri:   u,
				}
				return this, nil
			}
		}
		if v, err := string1.DeserializeString(i); err == nil {
			this := &TootBlurhashProperty{
				alias:                 alias,
				hasStringMember:       true,
				xmlschemaStringMember: v,
			}
			return this, nil
		}
		this := &TootBlurhashProperty{
			alias:   alias,
			unknown: i,
		}
		return this, nil
	}
	return nil, nil
}
func NewTootBlurhashProperty() *TootBlurhashProperty {
	return &TootBlurhashProperty{alias: ""}
}
func (this *TootBlurhashProperty) Clear() {
	this.unknown = nil
	this.iri = nil
	this.hasStringMember = false
}
func (this TootBlurhashProperty) Get() string {
	return this.xmlschemaStringMember
}
func (this TootBlurhashProperty) GetIRI() *url.URL {
	return this.iri
}
func (this TootBlurhashProperty) HasAny() bool {
	return this.IsXMLSchemaString() || this.iri != nil
}
func (this TootBlurhashProperty) IsIRI() bool {
	return this.iri != nil
}
func (this TootBlurhashProperty) IsXMLSchemaString() bool {
	return this.hasStringMember
}
func (this TootBlurhashProperty) 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 TootBlurhashProperty) KindIndex() int {
	if this.IsXMLSchemaString() {
		return 0
	}
	if this.IsIRI() {
		return -2
	}
	return -1
}
func (this TootBlurhashProperty) LessThan(o vocab.TootBlurhashProperty) 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 TootBlurhashProperty) Name() string {
	if len(this.alias) > 0 {
		return this.alias + ":" + "blurhash"
	} else {
		return "blurhash"
	}
}
func (this TootBlurhashProperty) Serialize() (interface{}, error) {
	if this.IsXMLSchemaString() {
		return string1.SerializeString(this.Get())
	} else if this.IsIRI() {
		return this.iri.String(), nil
	}
	return this.unknown, nil
}
func (this *TootBlurhashProperty) Set(v string) {
	this.Clear()
	this.xmlschemaStringMember = v
	this.hasStringMember = true
}