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 JSON representation of the model
docstr_tok: ["Returns","the","JSON","representation","of","the","model"]
code: def to_json(self, by_alias: bool = False) -> str:
      """Returns the JSON representation of the model"""
      return json.dumps(self.to_dict(by_alias=by_alias))
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/docker_worker_config_v2_lightly.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Optional
  from pydantic import Extra, BaseModel
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v2_lightly_collate import DockerWorkerConfigV2LightlyCollate
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v2_lightly_model import DockerWorkerConfigV2LightlyModel
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v2_lightly_trainer import DockerWorkerConfigV2LightlyTrainer
  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_optimizer import DockerWorkerConfigV3LightlyOptimizer
label_desc: Use image node_id 2 for calling the DockerWorkerConfigV2Lightly obj's underlying member method code with example usage: obj.to_json(by_alias) and returns: json