# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .department_parents import DepartmentParents


class ParentsDepartmentResponseBody(object):
    _types = {
        "items": List[DepartmentParents],
    }

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

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


class ParentsDepartmentResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._parents_department_response_body = ParentsDepartmentResponseBody()

    def items(self, items: List[DepartmentParents]) -> "ParentsDepartmentResponseBodyBuilder":
        self._parents_department_response_body.items = items
        return self

    def build(self) -> "ParentsDepartmentResponseBody":
        return self._parents_department_response_body
