# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .tasklist import Tasklist


class PatchTasklistResponseBody(object):
    _types = {
        "tasklist": Tasklist,
    }

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

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


class PatchTasklistResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._patch_tasklist_response_body = PatchTasklistResponseBody()

    def tasklist(self, tasklist: Tasklist) -> "PatchTasklistResponseBodyBuilder":
        self._patch_tasklist_response_body.tasklist = tasklist
        return self

    def build(self) -> "PatchTasklistResponseBody":
        return self._patch_tasklist_response_body
