# 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 ScopeEntryDateInfo(object):
    _types = {
        "from_": str,
        "to": str,
    }

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

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


class ScopeEntryDateInfoBuilder(object):
    def __init__(self) -> None:
        self._scope_entry_date_info = ScopeEntryDateInfo()

    def from_(self, from_: str) -> "ScopeEntryDateInfoBuilder":
        self._scope_entry_date_info.from_ = from_
        return self

    def to(self, to: str) -> "ScopeEntryDateInfoBuilder":
        self._scope_entry_date_info.to = to
        return self

    def build(self) -> "ScopeEntryDateInfo":
        return self._scope_entry_date_info
