class_docstr: Data model for Flow Config for AutoGen
code: def dict(self):
      result = asdict(self)
      result["sender"] = self.sender.dict()
      if isinstance(self.receiver, list):
          result["receiver"] = [r.dict() for r in self.receiver]
      else:
          result["receiver"] = self.receiver.dict()
      return result
  
imports: import uuid
  from datetime import datetime
  from typing import Any, Callable, Dict, List, Literal, Optional, Union
  from pydantic.dataclasses import dataclass
  from dataclasses import asdict, field
label_desc: Use image node_id 2 for calling the AgentWorkFlowConfig obj's underlying member method code with example usage: obj.dict() and returns: result