func (r *Resource) Navigator() Navigator {
	return Navigate(r.data)
}
Navigator returns a navigator on the root property.
package prop
import "github.com/imulab/go-scim/pkg/v2/spec"
func NewResource(resourceType *spec.ResourceType) *Resource {
	r := Resource{
		resourceType: resourceType,
		data:         NewComplex(resourceType.SuperAttribute(true)).(*complexProperty),
	}
	return &r
}
type Resource struct {
	resourceType *spec.ResourceType
	data         *complexProperty
}
func (r *Resource) ResourceType() *spec.ResourceType {
	return r.resourceType
}
func (r *Resource) RootAttribute() *spec.Attribute {
	return r.data.Attribute()
}
func (r *Resource) RootProperty() Property {
	return r.data
}
func (r *Resource) Hash() uint64 {
	return r.data.Hash()
}
func (r *Resource) Clone() *Resource {
	return &Resource{
		resourceType: r.resourceType,
		data:         r.data.Clone().(*complexProperty),
	}
}