# -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from __future__ import annotations

from darabonba.model import DaraModel

class ExecuteAITeacherChineseCompositionTutoringWorkflowRunResponseBody(DaraModel):
    def __init__(
        self,
        content: str = None,
        event: str = None,
        request_id: str = None,
    ):
        self.content = content
        self.event = event
        self.request_id = request_id

    def validate(self):
        pass

    def to_map(self):
        result = dict()
        _map = super().to_map()
        if _map is not None:
            result = _map
        if self.content is not None:
            result['content'] = self.content

        if self.event is not None:
            result['event'] = self.event

        if self.request_id is not None:
            result['requestId'] = self.request_id

        return result

    def from_map(self, m: dict = None):
        m = m or dict()
        if m.get('content') is not None:
            self.content = m.get('content')

        if m.get('event') is not None:
            self.event = m.get('event')

        if m.get('requestId') is not None:
            self.request_id = m.get('requestId')

        return self

