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 corruptness_check
        if self.corruptness_check:
            _dict['corruptnessCheck' if by_alias else 'corruptness_check'] = self.corruptness_check.to_dict(by_alias=by_alias)
        # override the default output from pydantic by calling `to_dict()` of datasource
        if self.datasource:
            _dict['datasource' if by_alias else 'datasource'] = self.datasource.to_dict(by_alias=by_alias)
        # override the default output from pydantic by calling `to_dict()` of crops
        if self.crops:
            _dict['crops' if by_alias else 'crops'] = self.crops.to_dict(by_alias=by_alias)
        # override the default output from pydantic by calling `to_dict()` of training
        if self.training:
            _dict['training' if by_alias else 'training'] = self.training.to_dict(by_alias=by_alias)
        return _dict
Returns the dictionary representation of the model
lightly/openapi_generated/swagger_client/models/docker_worker_config_v4_docker.py