sealed

fun sealed(codegen: Boolean, kotlinReflect: Boolean = false, metadataReflect: Boolean = false)(source)

Enables MoshiX-sealed on this project. This is used for polymorphic types.

Parameters

codegen

Enables codegen.

kotlinReflect

Enables kotlin-reflect-based support. Should only be used in unit tests or CLIs!

metadataReflect

Enables metadata-based reflection support. Should only be used in unit tests or CLIs!