ExternalType

@Target(allowedTargets = [])
annotation class ExternalType(val target: KClass<*>, val configuration: Json = Json(), val targetName: String = "")

Creates a JsonCodec for a class which is not part of the same module and which thus cannot be annotated with @Json.

Properties

Link copied to clipboard

The @Json annotation as if the target class was annotated directly.

Link copied to clipboard
val target: KClass<*>

The class for which a JsonCodec should be created.

Link copied to clipboard

The fully qualified name of the class for which a JsonCodec should be created.