# 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 .referral_info import ReferralInfo


class SearchReferralResponseBody(object):
    _types = {
        "items": List[ReferralInfo],
    }

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

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


class SearchReferralResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._search_referral_response_body = SearchReferralResponseBody()

    def items(self, items: List[ReferralInfo]) -> "SearchReferralResponseBodyBuilder":
        self._search_referral_response_body.items = items
        return self

    def build(self) -> "SearchReferralResponseBody":
        return self._search_referral_response_body
