def METHOD_NAME(self, request_data: dict) -> dict:
    naics_filter = {}
    code = request_data.get("code")
    description = request_data.get("filter")
    if not code and not description:
        return self._default_view()
    if code:
        naics_filter.update({"code": code})
    if description:
        naics_filter.update({"description__icontains": description})
        return self._filter_search(naics_filter)
    results = []
    for naics in self.naics_queryset.filter(Q(**naics_filter)):
        if naics.text_len < 6:
            result = {
                "naics": naics.code,
                "naics_description": naics.description,
                "count": self.get_six_digit_naics_count(naics.code),
                "children": self._fetch_children(naics.code),
            }
        else:
            result = {
                "naics": naics.code,
                "naics_description": naics.description,
                "count": DEFAULT_CHILDREN,
            }
        results.append(result)
    return {"results": results}