# 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 .whiteboard_node import WhiteboardNode


class ListWhiteboardNodeResponseBody(object):
    _types = {
        "nodes": List[WhiteboardNode],
    }

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

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


class ListWhiteboardNodeResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._list_whiteboard_node_response_body = ListWhiteboardNodeResponseBody()

    def nodes(self, nodes: List[WhiteboardNode]) -> "ListWhiteboardNodeResponseBodyBuilder":
        self._list_whiteboard_node_response_body.nodes = nodes
        return self

    def build(self) -> "ListWhiteboardNodeResponseBody":
        return self._list_whiteboard_node_response_body
