def from_dict(cls, obj: dict) -> Union(DockerWorkerConfigV0Data, DockerWorkerConfigV2Data, DockerWorkerConfigV3Data, DockerWorkerConfigV4Data):
        """Create an instance of DockerWorkerConfigVXDataBase from a dict"""
        # look up the object type based on discriminator mapping
        object_type = cls.get_discriminator_value(obj)
        if object_type:
            klass = getattr(lightly.openapi_generated.swagger_client.models, object_type)
            return klass.from_dict(obj)
        else:
            raise ValueError("DockerWorkerConfigVXDataBase failed to lookup discriminator value from " +
                             json.dumps(obj) + ". Discriminator property name: " + cls.__discriminator_property_name +
                             ", mapping: " + json.dumps(cls.__discriminator_value_class_map))
Create an instance of DockerWorkerConfigVXDataBase from a dict
lightly/openapi_generated/swagger_client/models/docker_worker_config_vx_data_base.py