def from_dict(cls, obj: dict) -> CreateSampleWithWriteUrlsResponse:
        """Create an instance of CreateSampleWithWriteUrlsResponse from a dict"""
        if obj is None:
            return None

        if not isinstance(obj, dict):
            return CreateSampleWithWriteUrlsResponse.parse_obj(obj)

        # raise errors for additional fields in the input
        for _key in obj.keys():
            if _key not in cls.__properties:
                raise ValueError("Error due to additional fields (not defined in CreateSampleWithWriteUrlsResponse) in the input: " + str(obj))

        _obj = CreateSampleWithWriteUrlsResponse.parse_obj({
            "id": obj.get("id"),
            "sample_write_urls": SampleWriteUrls.from_dict(obj.get("sampleWriteUrls")) if obj.get("sampleWriteUrls") is not None else None
        })
        return _obj
Create an instance of CreateSampleWithWriteUrlsResponse from a dict
lightly/openapi_generated/swagger_client/models/create_sample_with_write_urls_response.py