encodeArgsToStringUnsafe
Encodes the provided arguments into a JSON string representation without type safety checks.
This method casts the provided args to the expected TArgs type and invokes the type-safe encodeArgsToString method to perform the encoding. Use caution when calling this method, as it bypasses type safety and may result in a runtime exception if the cast fails.
Return
A JSON string representation of the provided arguments.
Parameters
args
The arguments to be encoded into a JSON string, provided as a generic Any? type.
Throws
If the provided arguments cannot be cast to the expected type TArgs.