serializeProfile(profile: HarnessProfile): __type| Name | Type | Description |
|---|---|---|
profile* | HarnessProfile | The profile to serialize. |
Serialize a HarnessProfile to a JSON-compatible object.
Omits undefined fields and extraMiddleware (runtime-only).
Throws if extraMiddleware contains instances — callers should
strip it before serializing if they've set it.