// UnstructuredFromPersistenceAction marshals a PersistenceAction object into dynamic client's unstructured
UnstructuredFromPersistenceAction marshals a PersistenceAction object into dynamic client's unstructured
// UnstructuredFromPersistenceAction marshals a PersistenceAction object into dynamic client ' s unstructured
func UnstructuredFromPersistenceAction(s *PersistenceAction) (*unstructured.Unstructured, error) {
	s.TypeMeta.Kind = TPRPersistenceActionsKind
	s.TypeMeta.APIVersion = TPRGroup + "/" + TPRVersion
	b, err := json.Marshal(s)
	if err != nil {
		return nil, err
	}
	var r unstructured.Unstructured
	if err := json.Unmarshal(b, &r.Object); err != nil {
		return nil, err
	}
	return &r, nil
}
func UnstructuredFromPersistenceAction ( s * PersistenceAction ) ( * unstructured . Unstructured , error ) { s . TypeMeta . Kind = TPRPersistenceActionsKind s . TypeMeta . APIVersion = TPRGroup + " " + TPRVersion b , err := json . Marshal ( s ) if err != nil { return nil , err } var r unstructured . Unstructured if err := json . Unmarshal ( b , & r . Object ) ; err != nil { return nil , err } return & r , nil }
UnstructuredFromPersistenceAction marshals a PersistenceAction object into dynamic client's unstructured
UnstructuredFromPersistenceAction marshals a PersistenceAction object into dynamic client ' s unstructured