(self)
return dto
Convert the category to its DTO representation
Convert the category to its DTO representation
Convert the category to its DTO representation
def as_dto(self) -> MappingIssueCategoryDTO:
        """ Convert the category to its DTO representation """
        dto = MappingIssueCategoryDTO()
        dto.category_id = self.id
        dto.name = self.name
        dto.description = self.description
        dto.archived = self.archived

        return dto
def as_dto ( self ) -> MappingIssueCategoryDTO : dto = MappingIssueCategoryDTO ( ) dto . category_id = self . id dto . name = self . name dto . description = self . description dto . archived = self . archived return dto