// NewUnstructured creates a new unstructured object from a typed object using the default codec.
NewUnstructured creates a new unstructured object from a typed object using the default codec.
// NewUnstructured creates a new unstructured object from a typed object using the default codec .
func NewUnstructured(obj TypedObjectAccessor) (UnstructuredTypedObject, error) {
	uObj, err := ToUnstructuredTypedObject(NewDefaultCodec(), obj)
	if err != nil {
		return UnstructuredTypedObject{}, nil
	}
	return *uObj, nil
}
func NewUnstructured ( obj TypedObjectAccessor ) ( UnstructuredTypedObject , error ) { uObj , err := ToUnstructuredTypedObject ( NewDefaultCodec ( ) , obj ) if err != nil { return UnstructuredTypedObject { } , nil } return * uObj , nil }
NewUnstructured creates a new unstructured object from a typed object using the default codec.
NewUnstructured creates a new unstructured object from a typed object using the default codec .