plugin/team/Serializer/WorkspaceTeamParametersSerializer.php
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;
    }
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;
    }
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 ; }
Serializes a WorkspaceTeamParameters entity for the JSON api.

@param WorkspaceTeamParameters $parameters

@return array - the serialized representation of the WorkspaceTeamParameters entity
Serializes a WorkspaceTeamParameters entity for the JSON api .