# 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 lark_oapi.event.context import EventContext
from .department_event import DepartmentEvent
from .old_department_object import OldDepartmentObject


class P2ContactDepartmentDeletedV3Data(object):
    _types = {
        "object": DepartmentEvent,
        "old_object": OldDepartmentObject,
    }

    def __init__(self, d=None):
        self.object: Optional[DepartmentEvent] = None
        self.old_object: Optional[OldDepartmentObject] = None
        init(self, d, self._types)


class P2ContactDepartmentDeletedV3(EventContext):
    _types = {
        "event": P2ContactDepartmentDeletedV3Data
    }

    def __init__(self, d=None):
        super().__init__(d)
        self._types.update(super()._types)
        self.event: Optional[P2ContactDepartmentDeletedV3Data] = None
        init(self, d, self._types)
