Extend return type parsing


- The issue was that QOAIObject lacked a constructor that accepts a
string, whereas all models derived from QOAIObject provided one.
This inconsistency caused the return type parsing to fail for QOAIObject.
- Add a constructor to the base object class that converts an
input string into a JSON object.
- Improve handling of operation response return types.
- Add a test to verify the implementation. The test passes if
the project compiles successfully.

The fix inspired by the following user's problem:
https://lists.qt-project.org/pipermail/interest/2026-July/040485.html

Pick-to: 6.11 6.12
Change-Id: I886af6d4ae8d7163770013cd20566541fe3fa9d2
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commitec70e0d5b96bb967252855befab87c080ea2cfa0
parent1416728942d98274a4820c30004dc902709b1d2a
authorTatiana Borisova <tatiana.borisova@qt.io>
committerTatiana Borisova <tatiana.borisova@qt.io>
commit timeTue, 28 Jul 2026 18:01:42 +0000