

def to_dto(self):
    permission = Permission(self.permission_type)
    for param in self.parameters:
        permission.add_parameter(param.to_dto())
    return permission

dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/weblab/db/model.py DbGroupPermission.to_dto/original