class_docstr: Lightly configurations which are passed to a Lightly Worker run. For information about the options see https://docs.lightly.ai/docs/all-configuration-options#run-configuration. 
class_docstr_tok: ["Lightly","configurations","which","are","passed","to","a","Lightly","Worker","run",".","For","information","about","the","options","see","https",":","\/\/docs.lightly.ai\/docs\/all-configuration-options","#","run-configuration","."]
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 checkpoint_callback
      if self.checkpoint_callback:
          _dict[
              "checkpointCallback"
              if by_alias
              else "checkpoint_callback"
          ] = self.checkpoint_callback.to_dict(by_alias=by_alias)
      # override the default output from pydantic by calling `to_dict()` of loader
      if self.loader:
          _dict[
              "loader" if by_alias else "loader"
          ] = self.loader.to_dict(by_alias=by_alias)
      # override the default output from pydantic by calling `to_dict()` of model
      if self.model:
          _dict["model" if by_alias else "model"] = self.model.to_dict(
              by_alias=by_alias
          )
      # override the default output from pydantic by calling `to_dict()` of trainer
      if self.trainer:
          _dict[
              "trainer" if by_alias else "trainer"
          ] = self.trainer.to_dict(by_alias=by_alias)
      # override the default output from pydantic by calling `to_dict()` of criterion
      if self.criterion:
          _dict[
              "criterion" if by_alias else "criterion"
          ] = self.criterion.to_dict(by_alias=by_alias)
      # override the default output from pydantic by calling `to_dict()` of optimizer
      if self.optimizer:
          _dict[
              "optimizer" if by_alias else "optimizer"
          ] = self.optimizer.to_dict(by_alias=by_alias)
      # override the default output from pydantic by calling `to_dict()` of collate
      if self.collate:
          _dict[
              "collate" if by_alias else "collate"
          ] = self.collate.to_dict(by_alias=by_alias)
      return _dict
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/docker_worker_config_v3_lightly.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Optional
  from pydantic import Extra, BaseModel, Field, StrictInt
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v3_lightly_checkpoint_callback import DockerWorkerConfigV3LightlyCheckpointCallback
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v3_lightly_collate import DockerWorkerConfigV3LightlyCollate
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v3_lightly_criterion import DockerWorkerConfigV3LightlyCriterion
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v3_lightly_loader import DockerWorkerConfigV3LightlyLoader
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v3_lightly_model import DockerWorkerConfigV3LightlyModel
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v3_lightly_optimizer import DockerWorkerConfigV3LightlyOptimizer
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v3_lightly_trainer import DockerWorkerConfigV3LightlyTrainer
label_desc: Use image node_id 4 for calling the DockerWorkerConfigV3Lightly obj's underlying member method code with example usage: obj.to_dict(by_alias) and returns: _dict