moshi-sealed-annotations / dev.zacsweers.moshisealed.annotations

Package dev.zacsweers.moshisealed.annotations

Annotations

DefaultNull

annotation class DefaultNull

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

DefaultObject

annotation class DefaultObject

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

TypeLabel

annotation class TypeLabel

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