# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class WidgetUrl(object):
    _types = {
        "url": str,
    }

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

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


class WidgetUrlBuilder(object):
    def __init__(self) -> None:
        self._widget_url = WidgetUrl()

    def url(self, url: str) -> "WidgetUrlBuilder":
        self._widget_url.url = url
        return self

    def build(self) -> "WidgetUrl":
        return self._widget_url
