# 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 .custom_field import CustomField


class GetCustomFieldResponseBody(object):
    _types = {
        "custom_field": CustomField,
    }

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

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


class GetCustomFieldResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_custom_field_response_body = GetCustomFieldResponseBody()

    def custom_field(self, custom_field: CustomField) -> "GetCustomFieldResponseBodyBuilder":
        self._get_custom_field_response_body.custom_field = custom_field
        return self

    def build(self) -> "GetCustomFieldResponseBody":
        return self._get_custom_field_response_body
