internal/classes/GiteaConnection.ps1

class GiteaConnection {

    # properties
    hidden[System.Collections.Hashtable]$Headers
    [String]$ServerRoot
    hidden[String]$WebServiceRoot
    [String]$AuthenticatedUser

    # constructors
    GiteaConnection () {
        $this.Headers=@{}
     }
    GiteaConnection ([PSCustomObject]$InputObject) {
        $this.Headers = $InputObject.headers
        $this.ServerRoot = $InputObject.serverRoot
        $this.AuthenticatedUser = $InputObject.authenticatedUser
    }

}