public function serialize(WorkspaceTeamParameters $parameters)
    {
        $serialized = [
            'id' => $parameters->getUuid(),
            'selfRegistration' => $parameters->isSelfRegistration(),
            'selfUnregistration' => $parameters->isSelfUnregistration(),
            'publicDirectory' => $parameters->isPublic(),
            'deletableDirectory' => $parameters->isDirDeletable(),
            'allowedTeams' => $parameters->getMaxTeams(),
            'workspace' => [
              'uuid' => $parameters->getWorkspace()->getUuid(),
            ],
        ];

        return $serialized;
    }