Use 'isModel' key to detect the object type


- Instead of using the following long block:
{{^isArray}}{{^isPrimitiveType}}{{^isAnyType}}{{^isMap}}
...
{{/isArray}}{{/isPrimitiveType}}{{/isAnyType}}{{/isMap}}
we can use {{#isModel}} ... {{/isModel}}.

Change-Id: I6bf19f7f78e93653e65a4cc05f5c620d29fae2ed
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit367be377f36aa9db3ebb999bf1314de90b63c96a
parent11afb70cd2b84337310fcb67ef116c4f920dcc8f
authorTatiana Borisova <tatiana.borisova@qt.io>
committerTatiana Borisova <tatiana.borisova@qt.io>
commit timeMon, 11 Aug 2025 19:44:04 +0200