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

        if not isinstance(obj, dict):
            return SelectedAndRemovedImagePair.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 SelectedAndRemovedImagePair) in the input: " + str(obj))

        _obj = SelectedAndRemovedImagePair.parse_obj({
            "selected_image": obj.get("selectedImage"),
            "removed_image": obj.get("removedImage"),
            "distance": obj.get("distance")
        })
        return _obj
Create an instance of SelectedAndRemovedImagePair from a dict
lightly/openapi_generated/swagger_client/models/selected_and_removed_image_pair.py