# 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 .chat_menu_tree import ChatMenuTree


class SortChatMenuTreeResponseBody(object):
    _types = {
        "menu_tree": ChatMenuTree,
    }

    def __init__(self, d=None):
        self.menu_tree: Optional[ChatMenuTree] = None
        init(self, d, self._types)

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


class SortChatMenuTreeResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._sort_chat_menu_tree_response_body = SortChatMenuTreeResponseBody()

    def menu_tree(self, menu_tree: ChatMenuTree) -> "SortChatMenuTreeResponseBodyBuilder":
        self._sort_chat_menu_tree_response_body.menu_tree = menu_tree
        return self

    def build(self) -> "SortChatMenuTreeResponseBody":
        return self._sort_chat_menu_tree_response_body
