internal/functions/format/ConvertFrom-RestGroup.ps1

function ConvertFrom-RestGroup {
    <#
    .SYNOPSIS
        Converts a REST API response object representing a group into a more user-friendly format.

    .DESCRIPTION
        Converts a REST API response object representing a group into a more user-friendly format.

    .PARAMETER InputObject
        The REST API response object that represents a group.

    .DESCRIPTION
        This function takes a REST API response object that represents a group and converts it into a more user-friendly format. This can be useful for displaying group information in a more readable way or for further processing.

    .EXAMPLE
        $group = Get-RestApiGroup -Id "groupId"
        $formattedGroup = ConvertFrom-RestGroup -InputObject $group
        Write-Output $formattedGroup
    #>

    param (
        $InputObject
    )

    if (-not $InputObject) { return }

    ConvertFrom-GraphResponse -InputObject $InputObject -Type ([PSMicrosoftEntraID.Groups.Group])
}