func GetAppliedRestoreSession(m map[string]string) (*v1beta1_api.RestoreSession, error) {
	data := GetString(m, v1beta1_api.KeyLastAppliedRestoreSession)
	if data == "" {
		return nil, nil
	}

	obj, err := meta.UnmarshalFromJSON([]byte(data), v1beta1_api.SchemeGroupVersion)
	if err != nil {
		return nil, err
	}
	restoreSession, ok := obj.(*v1beta1_api.RestoreSession)
	if !ok {
		return nil, fmt.Errorf("%s annotations has invalid RestoreSession object", v1beta1_api.KeyLastAppliedRestoreSession)
	}
	return restoreSession, nil
}
// GetAppliedRestoreSession check whether RestoreSession was applied as annotation and returns the object definition if exist.
GetAppliedRestoreSession check whether RestoreSession was applied as annotation and returns the object definition if exist.
// GetAppliedRestoreSession check whether RestoreSession was applied as annotation and returns the object definition if exist .
func GetAppliedRestoreSession(m map[string]string) (*v1beta1_api.RestoreSession, error) {
	data := GetString(m, v1beta1_api.KeyLastAppliedRestoreSession)
	if data == "" {
		return nil, nil
	}
	obj, err := meta.UnmarshalFromJSON([]byte(data), v1beta1_api.SchemeGroupVersion)
	if err != nil {
		return nil, err
	}
	restoreSession, ok := obj.(*v1beta1_api.RestoreSession)
	if !ok {
		return nil, fmt.Errorf("%s annotations has invalid RestoreSession object", v1beta1_api.KeyLastAppliedRestoreSession)
	}
	return restoreSession, nil
}
func GetAppliedRestoreSession ( m map [ string ] string ) ( * v1beta1_api . RestoreSession , error ) { data := GetString ( m , v1beta1_api . KeyLastAppliedRestoreSession ) if data == " " { return nil , nil } obj , err := meta . UnmarshalFromJSON ( [ ] byte ( data ) , v1beta1_api . SchemeGroupVersion ) if err != nil { return nil , err } restoreSession , ok := obj . ( * v1beta1_api . RestoreSession ) if ! ok { return nil , fmt . Errorf ( " " , v1beta1_api . KeyLastAppliedRestoreSession ) } return restoreSession , nil }
GetAppliedRestoreSession check whether RestoreSession was applied as annotation and returns the object definition if exist.
GetAppliedRestoreSession check whether RestoreSession was applied as annotation and returns the object definition if exist .