# 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 .block import Block


class GetDocumentBlockResponseBody(object):
    _types = {
        "block": Block,
    }

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

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


class GetDocumentBlockResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_document_block_response_body = GetDocumentBlockResponseBody()

    def block(self, block: Block) -> "GetDocumentBlockResponseBodyBuilder":
        self._get_document_block_response_body.block = block
        return self

    def build(self) -> "GetDocumentBlockResponseBody":
        return self._get_document_block_response_body
