Move serialization helpers from api-base to helpers


The functions do not depend on or use the internal state of the
{{prefix}}BaseApi class, so it makes sense to move them to the
dedicated helpers header, where all other serialization-related
helper functions are already declared.

As a drive-by: start using Qt::StringLiterals in the implementation
of the moved methods.

Fixes: QTBUG-140222
Change-Id: Iebb72a474bc743aa6cab3c1798d095d8e5e5263f
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
commitaf29eddd328b1189db190c422c12a81d78be856c
parent0107db2ff906f8a32d77286d8f2127dc35dcd6cb
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeFri, 26 Sep 2025 17:42:22 +0200