UnknownOpenUnionMember

Sub-interface implemented by the generator-emitted Unknown variant of each sealed union. Carries the original $type string and the full raw JSON object so that re-serialization is lossless.

Each generated union has its OWN Unknown data class implementing this interface (typed as a member of that union's sealed hierarchy) so that type checking works end-to-end.

Properties

Link copied to clipboard
abstract val raw: <Error class: unknown class>

The full original JSON object, including the $type key.

Link copied to clipboard
abstract val type: String

The $type value from the wire (may be a bare NSID or nsid#name).