SetupAttemptUnion

Union type for an expandable SetupAttempt.

SetupAttempts can be expanded in some API responses. This pseudo-union type joins the two possible options into a single field for polymorphic serialization as either an expanded object or just an ID.

Inheritors

Types

Link copied to clipboard
@Serializable
data class Expanded(val setupAttempt: SetupAttempt) : SetupAttemptUnion

Fully expanded SetupAttempt object.

Link copied to clipboard
@Serializable
data class Reference(val id: String) : SetupAttemptUnion

Non-Expanded ID of a SetupAttempt.

Properties

Link copied to clipboard
abstract val id: String

The ID of the setup attempt, extracted since it is available in either type.