func (this *ActivityStreamsWidthProperty) Clear() {
	this.unknown = nil
	this.iri = nil
	this.hasNonNegativeIntegerMember = false
}
Clear ensures no value of this property is set. Calling
IsXMLSchemaNonNegativeInteger afterwards will return false.
package propertywidth
import (
	"fmt"
	nonnegativeinteger "github.com/go-fed/activity/streams/values/nonNegativeInteger"
	vocab "github.com/go-fed/activity/streams/vocab"
	"net/url"
)
type ActivityStreamsWidthProperty struct {
	xmlschemaNonNegativeIntegerMember int
	hasNonNegativeIntegerMember       bool
	unknown                           interface{}
	iri                               *url.URL
	alias                             string
}
func DeserializeWidthProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsWidthProperty, error) {
	alias := ""
	if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
		alias = a
	}
	propName := "width"
	if len(alias) > 0 {
		propName = fmt.Sprintf("%s:%s", alias, "width")
	}
	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 := &ActivityStreamsWidthProperty{
					alias: alias,
					iri:   u,
				}
				return this, nil
			}
		}
		if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil {
			this := &ActivityStreamsWidthProperty{
				alias:                             alias,
				hasNonNegativeIntegerMember:       true,
				xmlschemaNonNegativeIntegerMember: v,
			}
			return this, nil
		}
		this := &ActivityStreamsWidthProperty{
			alias:   alias,
			unknown: i,
		}
		return this, nil
	}
	return nil, nil
}
func NewActivityStreamsWidthProperty() *ActivityStreamsWidthProperty {
	return &ActivityStreamsWidthProperty{alias: ""}
}