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