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

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

        _obj = DatasourceConfigVerifyData.parse_obj({
            "can_read": obj.get("canRead"),
            "can_write": obj.get("canWrite"),
            "can_list": obj.get("canList"),
            "can_overwrite": obj.get("canOverwrite"),
            "errors": DatasourceConfigVerifyDataErrors.from_dict(obj.get("errors")) if obj.get("errors") is not None else None
        })
        return _obj
Create an instance of DatasourceConfigVerifyData from a dict
lightly/openapi_generated/swagger_client/models/datasource_config_verify_data.py