Coerces an Express body (urlencoded or JSON object) into a Record<string, string>.
String values are kept as-is; numbers and booleans are stringified (Vonage JSON events carry them);
anything else (objects, arrays, null) is dropped, as are the forbidden keys.
Parameters
body: unknown
The parsed request body.
Returns Record<string,string>
A map holding only the safe scalar fields, each an own data property.
Coerces an Express body (urlencoded or JSON object) into a
Record<string, string>. String values are kept as-is; numbers and booleans are stringified (Vonage JSON events carry them); anything else (objects, arrays, null) is dropped, as are the forbidden keys.