global
def params_assignment(indent)
as_json emits explicit null where a flat hash through Transport could not). Wrapped
record builds its Parameters object and a union dispatches via `.build` (whose typed
The `params = …` line built before the execute call, or nil for a no-arg command. A
def params_assignment(indent) return nil if params.empty? kwargs = params.map { |p| "#{p.ruby_name}: #{p.ruby_name}" } BiDiGenerate.wrap_call("params = #{params_class}.#{union_params ? 'build' : 'new'}", kwargs, indent) end