37 lines
942 B
Python
37 lines
942 B
Python
# 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 ContractCompany(object):
|
|
_types = {
|
|
"id": int,
|
|
"name": str,
|
|
}
|
|
|
|
def __init__(self, d=None):
|
|
self.id: Optional[int] = None
|
|
self.name: Optional[str] = None
|
|
init(self, d, self._types)
|
|
|
|
@staticmethod
|
|
def builder() -> "ContractCompanyBuilder":
|
|
return ContractCompanyBuilder()
|
|
|
|
|
|
class ContractCompanyBuilder(object):
|
|
def __init__(self) -> None:
|
|
self._contract_company = ContractCompany()
|
|
|
|
def id(self, id: int) -> "ContractCompanyBuilder":
|
|
self._contract_company.id = id
|
|
return self
|
|
|
|
def name(self, name: str) -> "ContractCompanyBuilder":
|
|
self._contract_company.name = name
|
|
return self
|
|
|
|
def build(self) -> "ContractCompany":
|
|
return self._contract_company
|