# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from .category import Category


class ListCategoryResponseBody(object):
    _types = {
        "categories": List[Category],
    }

    def __init__(self, d=None):
        self.categories: Optional[List[Category]] = None
        init(self, d, self._types)

    @staticmethod
    def builder() -> "ListCategoryResponseBodyBuilder":
        return ListCategoryResponseBodyBuilder()


class ListCategoryResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._list_category_response_body = ListCategoryResponseBody()

    def categories(self, categories: List[Category]) -> "ListCategoryResponseBodyBuilder":
        self._list_category_response_body.categories = categories
        return self

    def build(self) -> "ListCategoryResponseBody":
        return self._list_category_response_body
