Optionalgroups: Record<string, any>[]The raw groups info response from the API, which may include nested sub-groups and node details.
An array of transformed groups, each conforming to the ESPRMGroupInterface format, or an empty array if no data is provided.
Transforms the raw groups info response from the API into a structured format.
This function takes the raw API response for groups and maps it to a structured array of
ESPRMGroupInterfaceobjects. It ensures that fields like node details and sub-groups are properly transformed and included in the result.