convertToMap

Override convertToMap to handle the inFolder parameter correctly. The API expects a single folder ID, so we use only the first item if a list is provided.