Scoped Type Configuration

How can I scope Type Configuration for my JsConfig?

I see I can access it globally JsConfig<Type>.SerializerFn, but I’d like to keep this configuration scoped.

body = request.ToJson(cfg =>
{
    cfg.TextCase                                  = TextCase.SnakeCase;
    cfg.TreatEnumAsInteger                        = true;
    cfg<System.Boolean>().SerializeFn             = b => b ? "1" : "0"; // error
});

How can I scope my Type Configuration so that it operates only when needed, and not globally?

See JsonConfig.With() examples in Customize JSON Responses.