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