# 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 PatchCustomFieldResponseBody(object):
    _types = {
        "custom_field": CustomField,
    }

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

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


class PatchCustomFieldResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._patch_custom_field_response_body = PatchCustomFieldResponseBody()

    def custom_field(self, custom_field: CustomField) -> "PatchCustomFieldResponseBodyBuilder":
        self._patch_custom_field_response_body.custom_field = custom_field
        return self

    def build(self) -> "PatchCustomFieldResponseBody":
        return self._patch_custom_field_response_body
