# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .section import Section


class GetSectionResponseBody(object):
    _types = {
        "section": Section,
    }

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

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


class GetSectionResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_section_response_body = GetSectionResponseBody()

    def section(self, section: Section) -> "GetSectionResponseBodyBuilder":
        self._get_section_response_body.section = section
        return self

    def build(self) -> "GetSectionResponseBody":
        return self._get_section_response_body
