# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .department import Department


class GetDepartmentResponseBody(object):
    _types = {
        "department": Department,
    }

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

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


class GetDepartmentResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_department_response_body = GetDepartmentResponseBody()

    def department(self, department: Department) -> "GetDepartmentResponseBodyBuilder":
        self._get_department_response_body.department = department
        return self

    def build(self) -> "GetDepartmentResponseBody":
        return self._get_department_response_body
