NestedSealed

@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.

The supertype must be a direct supertype. It is an error to annotate this type with JsonClass as this supersedes that annotation.

Types

Link copied to clipboard

Optional factory that can be installed to enable lookup of nested sealed types directly from Moshi.adapter calls.