# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class OptionProperties(object):
    _types = {
        "show_dropdown_icon": bool,
    }

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

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


class OptionPropertiesBuilder(object):
    def __init__(self) -> None:
        self._option_properties = OptionProperties()

    def show_dropdown_icon(self, show_dropdown_icon: bool) -> "OptionPropertiesBuilder":
        self._option_properties.show_dropdown_icon = show_dropdown_icon
        return self

    def build(self) -> "OptionProperties":
        return self._option_properties
