Defined

data class Defined<out T>(val value: T) : AtField<T>

The field key is present with a concrete value.

Constructors

Link copied to clipboard
constructor(value: T)

Properties

Link copied to clipboard
val value: T

Functions

Link copied to clipboard

Flattens a list-shaped AtField into a list: the wrapped list when AtField.Defined, otherwise an empty list.

Link copied to clipboard
fun <T> AtField<T>.valueOrNull(): T?

Flattens this AtField into a nullable: the wrapped value when AtField.Defined, otherwise null.