FiktionValueMetadata

class FiktionValueMetadata<T>(val type: KType, val underlyingType: KType, val propertyName: String, constructor: (value: Any?) -> T) : FiktionTypeMetadata<T>

Runtime construction metadata for a value-like type backed by one generated value.

Constructors

Link copied to clipboard
constructor(type: KType, underlyingType: KType, propertyName: String, constructor: (value: Any?) -> T)

Properties

Link copied to clipboard

Constructor property name for the underlying value.

Link copied to clipboard
open override val type: KType

Type represented by this metadata.

Link copied to clipboard

Type used to generate the underlying value.

Functions

Link copied to clipboard
fun construct(value: Any?): T

Creates an instance from the generated underlying value.