Fix deepobject serialization for anytype object parameters


{{prefix}}BaseApi::serializeJsonValue() works well for all types,
including QJsonValue::Object, except when the style is deepObject.
Previously, The parameter name was not appeneded with [] to the path for
anytype objects.

Remove the deepobject logic for object query parameters ({{#isModel}})
because this is now handled inside serializeJsonValue().

For most styles, the parameter name is included in the suffix.
However, the deepObejct suffix was empty. Store the parameter name in it.

Change-Id: I211d333f4d5af396d6b0553571084b02ddfd8e16
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit8d10705284cee78bd2bccd66c1bb4e31ecc5263b
parent16e7856c5fcf5b8806ff08f4a2cb4523fd6846ca
authorRym Bouabid <rym.bouabid@qt.io>
committerRym Bouabid <rym.bouabid@qt.io>
commit timeThu, 18 Sep 2025 15:12:03 +0200