# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .custom_field import CustomField


class QueryCustomFieldResponseBody(object):
    _types = {
        "items": List[CustomField],
    }

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

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


class QueryCustomFieldResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._query_custom_field_response_body = QueryCustomFieldResponseBody()

    def items(self, items: List[CustomField]) -> "QueryCustomFieldResponseBodyBuilder":
        self._query_custom_field_response_body.items = items
        return self

    def build(self) -> "QueryCustomFieldResponseBody":
        return self._query_custom_field_response_body
