// GetObject retrieves a object property.
GetObject retrieves a object property.
// GetObject retrieves a object property .
func (s State) GetObject(path string) (State, error) {
	v, err := s.Get(path)
	if err != nil {
		return NewState(), err
	}
	if o, ok := v.(State); ok {
		return o, nil
	}
	return NewState(), fmt.Errorf("cannot convert %q to State", v)
}
func ( s State ) GetObject ( path string ) ( State , error ) { v , err := s . Get ( path ) if err != nil { return NewState ( ) , err } if o , ok := v . ( State ) ; ok { return o , nil } return NewState ( ) , fmt . Errorf ( " " , v ) }
GetObject retrieves a object property.
GetObject retrieves a object property .