def from_json(cls, json_str: str) -> DockerWorkerConfigOmniVXCreateRequest:
        """Returns the object represented by the json string"""
        instance = DockerWorkerConfigOmniVXCreateRequest.construct()
        error_messages = []
        match = 0

        # use oneOf discriminator to lookup the data type
        _data_type = json.loads(json_str).get("version")
        if not _data_type:
            raise ValueError("Failed to lookup data type from the field `version` in the input.")

        # check if data type is `DockerWorkerConfigOmniV2CreateRequest`
        if _data_type == "DockerWorkerConfigOmniV2CreateRequest":
            instance.actual_instance = DockerWorkerConfigOmniV2CreateRequest.from_json(json_str)
            return instance

        # check if data type is `DockerWorkerConfigOmniV3CreateRequest`
        if _data_type == "DockerWorkerConfigOmniV3CreateRequest":
            instance.actual_instance = DockerWorkerConfigOmniV3CreateRequest.from_json(json_str)
            return instance

        # check if data type is `DockerWorkerConfigOmniV4CreateRequest`
        if _data_type == "DockerWorkerConfigOmniV4CreateRequest":
            instance.actual_instance = DockerWorkerConfigOmniV4CreateRequest.from_json(json_str)
            return instance

        # check if data type is `DockerWorkerConfigOmniV2CreateRequest`
        if _data_type == "V2":
            instance.actual_instance = DockerWorkerConfigOmniV2CreateRequest.from_json(json_str)
            return instance

        # check if data type is `DockerWorkerConfigOmniV3CreateRequest`
        if _data_type == "V3":
            instance.actual_instance = DockerWorkerConfigOmniV3CreateRequest.from_json(json_str)
            return instance

        # check if data type is `DockerWorkerConfigOmniV4CreateRequest`
        if _data_type == "V4":
            instance.actual_instance = DockerWorkerConfigOmniV4CreateRequest.from_json(json_str)
            return instance

        # deserialize data into DockerWorkerConfigOmniV2CreateRequest
        try:
            instance.actual_instance = DockerWorkerConfigOmniV2CreateRequest.from_json(json_str)
            match += 1
        except (ValidationError, ValueError) as e:
            error_messages.append(str(e))
        # deserialize data into DockerWorkerConfigOmniV3CreateRequest
        try:
            instance.actual_instance = DockerWorkerConfigOmniV3CreateRequest.from_json(json_str)
            match += 1
        except (ValidationError, ValueError) as e:
            error_messages.append(str(e))
        # deserialize data into DockerWorkerConfigOmniV4CreateRequest
        try:
            instance.actual_instance = DockerWorkerConfigOmniV4CreateRequest.from_json(json_str)
            match += 1
        except (ValidationError, ValueError) as e:
            error_messages.append(str(e))

        if match > 1:
            # more than 1 match
            raise ValueError("Multiple matches found when deserializing the JSON string into DockerWorkerConfigOmniVXCreateRequest with oneOf schemas: DockerWorkerConfigOmniV2CreateRequest, DockerWorkerConfigOmniV3CreateRequest, DockerWorkerConfigOmniV4CreateRequest. Details: " + ", ".join(error_messages))
        elif match == 0:
            # no match
            raise ValueError("No match found when deserializing the JSON string into DockerWorkerConfigOmniVXCreateRequest with oneOf schemas: DockerWorkerConfigOmniV2CreateRequest, DockerWorkerConfigOmniV3CreateRequest, DockerWorkerConfigOmniV4CreateRequest. Details: " + ", ".join(error_messages))
        else:
            return instance
Returns the object represented by the json string
lightly/openapi_generated/swagger_client/models/docker_worker_config_omni_vx_create_request.py