QDoc: Extract shared classification JSON helpers
The document and member IR types both need to serialize
classification fields (node type, access level, status) as
structured JSON objects with stable identifiers for template
conditionals. Duplicating these conversion functions across
files invites drift and makes changes error-prone.
Shared inline helpers produce a two-part {id, label} structure:
a kebab-case identifier that templates can match against, and a
human-readable label for display. Moving these into a dedicated
header lets both the existing document IR and the upcoming member
IR share a single source of truth.
Task-number: QTBUG-145108
Change-Id: I138f379dbf47ec1e099cd31b773c17820b5f3eb0
Reviewed-by: Topi Reinio <topi.reinio@qt.io>