# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from .tasklist import Tasklist


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

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

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


class CreateTasklistResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_tasklist_response_body = CreateTasklistResponseBody()

    def tasklist(self, tasklist: Tasklist) -> "CreateTasklistResponseBodyBuilder":
        self._create_tasklist_response_body.tasklist = tasklist
        return self

    def build(self) -> "CreateTasklistResponseBody":
        return self._create_tasklist_response_body
