class_docstr: DockerWorkerConfigV3
class_docstr_tok: ["DockerWorkerConfigV3"]
docstr: Returns the dictionary representation of the model
docstr_tok: ["Returns","the","dictionary","representation","of","the","model"]
code: def to_dict(self, by_alias: bool = False):
      """Returns the dictionary representation of the model"""
      _dict = self.dict(
          by_alias=by_alias, exclude={}, exclude_none=True
      )
      # override the default output from pydantic by calling `to_dict()` of docker
      if self.docker:
          _dict[
              "docker" if by_alias else "docker"
          ] = self.docker.to_dict(by_alias=by_alias)
      # override the default output from pydantic by calling `to_dict()` of lightly
      if self.lightly:
          _dict[
              "lightly" if by_alias else "lightly"
          ] = self.lightly.to_dict(by_alias=by_alias)
      # override the default output from pydantic by calling `to_dict()` of selection
      if self.selection:
          _dict[
              "selection" if by_alias else "selection"
          ] = self.selection.to_dict(by_alias=by_alias)
      return _dict
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/docker_worker_config_v3.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Optional
  from pydantic import Extra, BaseModel, Field
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v3_docker import DockerWorkerConfigV3Docker
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v3_lightly import DockerWorkerConfigV3Lightly
  from lightly.openapi_generated.swagger_client.models.docker_worker_type import DockerWorkerType
  from lightly.openapi_generated.swagger_client.models.selection_config_v3 import SelectionConfigV3
label_desc: Use image node_id 4 for calling the DockerWorkerConfigV3 obj's underlying member method code with example usage: obj.to_dict(by_alias) and returns: _dict