def METHOD_NAME(self, geojson, all_touched=False):
    json_to_file(geojson, self.uri)
    config = RasterizedSourceConfig(
        vector_source=GeoJSONVectorSourceConfig(uris=self.uri),
        rasterizer_config=RasterizerConfig(
            background_class_id=self.background_class_id,
            all_touched=all_touched))
    config.update()
    source = config.build(self.class_config, self.crs_transformer,
                          self.extent)
    return source