encodeResultUnsafe
Encodes the given result object into a JSON representation without type safety checks. This method casts the provided result to the expected TResult type and leverages the encodeResult method to produce the JSON output.
Return
A JsonObject representing the encoded result.
Parameters
result
The result object of type Any? to be encoded. It is internally cast to TResult, which may lead to runtime exceptions if the cast is invalid.