# Code generated by Lark OpenAPI.

from typing import Optional

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


class GetByParamCustomFieldResponseBody(object):
    _types = {
        "data": CustomField,
    }

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

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


class GetByParamCustomFieldResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_by_param_custom_field_response_body = GetByParamCustomFieldResponseBody()

    def data(self, data: CustomField) -> "GetByParamCustomFieldResponseBodyBuilder":
        self._get_by_param_custom_field_response_body.data = data
        return self

    def build(self) -> "GetByParamCustomFieldResponseBody":
        return self._get_by_param_custom_field_response_body
