# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class GridColumn(object):
    _types = {
        "width_ratio": int,
    }

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

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


class GridColumnBuilder(object):
    def __init__(self) -> None:
        self._grid_column = GridColumn()

    def width_ratio(self, width_ratio: int) -> "GridColumnBuilder":
        self._grid_column.width_ratio = width_ratio
        return self

    def build(self) -> "GridColumn":
        return self._grid_column
