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

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

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


class CreateCustomFieldResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_custom_field_response_body = CreateCustomFieldResponseBody()

    def custom_field(self, custom_field: CustomField) -> "CreateCustomFieldResponseBodyBuilder":
        self._create_custom_field_response_body.custom_field = custom_field
        return self

    def build(self) -> "CreateCustomFieldResponseBody":
        return self._create_custom_field_response_body
