# 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 AppFieldPropertyAutoSerialOptions(object):
    _types = {
        "type": str,
        "value": str,
    }

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

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


class AppFieldPropertyAutoSerialOptionsBuilder(object):
    def __init__(self) -> None:
        self._app_field_property_auto_serial_options = AppFieldPropertyAutoSerialOptions()

    def type(self, type: str) -> "AppFieldPropertyAutoSerialOptionsBuilder":
        self._app_field_property_auto_serial_options.type = type
        return self

    def value(self, value: str) -> "AppFieldPropertyAutoSerialOptionsBuilder":
        self._app_field_property_auto_serial_options.value = value
        return self

    def build(self) -> "AppFieldPropertyAutoSerialOptions":
        return self._app_field_property_auto_serial_options
