func NewActivityStreamsStartIndexProperty() *ActivityStreamsStartIndexProperty {
	return &ActivityStreamsStartIndexProperty{alias: ""}
}
NewActivityStreamsStartIndexProperty creates a new startIndex property.
package propertystartindex
import (
	"fmt"
	nonnegativeinteger "github.com/go-fed/activity/streams/values/nonNegativeInteger"
	vocab "github.com/go-fed/activity/streams/vocab"
	"net/url"
)
type ActivityStreamsStartIndexProperty struct {
	xmlschemaNonNegativeIntegerMember int
	hasNonNegativeIntegerMember       bool
	unknown                           interface{}
	iri                               *url.URL
	alias                             string
}
func DeserializeStartIndexProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsStartIndexProperty, error) {
	alias := ""
	if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
		alias = a
	}
	propName := "startIndex"
	if len(alias) > 0 {
		propName = fmt.Sprintf("%s:%s", alias, "startIndex")
	}
	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 := &ActivityStreamsStartIndexProperty{
					alias: alias,
					iri:   u,
				}
				return this, nil
			}
		}
		if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil {
			this := &ActivityStreamsStartIndexProperty{
				alias:                             alias,
				hasNonNegativeIntegerMember:       true,
				xmlschemaNonNegativeIntegerMember: v,
			}
			return this, nil
		}
		this := &ActivityStreamsStartIndexProperty{
			alias:   alias,
			unknown: i,
		}
		return this, nil
	}
	return nil, nil
}