func (u UpdateSet) UpdateInput() models.SceneUpdateInput {
	// ensure the partial ID is set
	u.Partial.ID = u.ID
	ret := u.Partial.UpdateInput()

	if u.PerformerIDs != nil {
		ret.PerformerIds = intslice.IntSliceToStringSlice(u.PerformerIDs)
	}

	if u.TagIDs != nil {
		ret.TagIds = intslice.IntSliceToStringSlice(u.TagIDs)
	}

	if u.StashIDs != nil {
		for _, s := range u.StashIDs {
			ss := s.StashIDInput()
			ret.StashIds = append(ret.StashIds, &ss)
		}
	}

	if u.CoverImage != nil {
		// convert back to base64
		data := utils.GetBase64StringFromData(u.CoverImage)
		ret.CoverImage = &data
	}

	return ret
}
// UpdateInput converts the UpdateSet into SceneUpdateInput for hook firing purposes.
UpdateInput converts the UpdateSet into SceneUpdateInput for hook firing purposes.
// UpdateInput converts the UpdateSet into SceneUpdateInput for hook firing purposes .
func (u UpdateSet) UpdateInput() models.SceneUpdateInput {
	u.Partial.ID = u.ID
	ret := u.Partial.UpdateInput()
	if u.PerformerIDs != nil {
		ret.PerformerIds = intslice.IntSliceToStringSlice(u.PerformerIDs)
	}
	if u.TagIDs != nil {
		ret.TagIds = intslice.IntSliceToStringSlice(u.TagIDs)
	}
	if u.StashIDs != nil {
		for _, s := range u.StashIDs {
			ss := s.StashIDInput()
			ret.StashIds = append(ret.StashIds, &ss)
		}
	}
	if u.CoverImage != nil {
		data := utils.GetBase64StringFromData(u.CoverImage)
		ret.CoverImage = &data
	}
	return ret
}
func ( u UpdateSet ) UpdateInput ( ) models . SceneUpdateInput { u . Partial . ID = u . ID ret := u . Partial . UpdateInput ( ) if u . PerformerIDs != nil { ret . PerformerIds = intslice . IntSliceToStringSlice ( u . PerformerIDs ) } if u . TagIDs != nil { ret . TagIds = intslice . IntSliceToStringSlice ( u . TagIDs ) } if u . StashIDs != nil { for _ , s := range u . StashIDs { ss := s . StashIDInput ( ) ret . StashIds = append ( ret . StashIds , & ss ) } } if u . CoverImage != nil { data := utils . GetBase64StringFromData ( u . CoverImage ) ret . CoverImage = & data } return ret }
UpdateInput converts the UpdateSet into SceneUpdateInput for hook firing purposes.
UpdateInput converts the UpdateSet into SceneUpdateInput for hook firing purposes .
// ensure the partial ID is set // convert back to base64