Package-level declarations

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class DefaultNull

Use this annotation to specify that a given sealed type's deserialization should default to null.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class DefaultObject

Use this annotation to specify specific object subtype to be the default instance.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class FallbackJsonAdapter(val value: KClass<out JsonAdapter<*>>)

Use this annotation to specify specific fallback adapter to use. This is a proxy to PolymorphicJsonAdapterFactory.withFallbackJsonAdapter.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class NestedSealed

Use this annotation to specify that a given sealed type is a subtype of another sealed type and uses the same key as the supertype.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class TypeLabel(val label: String, val alternateLabels: Array<String> = [])

Use this annotation to specify the type label of a subtype.