Builds an inline object parameter with JSDoc comments for each property. Handles properties with special characters (like HTTP headers) using string literals.
Builds a params?: { query?: {...}; headers?: {...} } parameter, omitting
the query or headers branches when their property list is empty.
Returns null when both branches are empty.
Keeping query and headers in separate sub-objects (rather than one flat record)
lets the runtime RequestBuilder apply each set under its own OpenAPI rules
without having to disambiguate by name.
Utility class for building TypeScript method parameters. Designed to be injected via DI.