Package-level declarations

Types

Link copied to clipboard
interface JsonMapper<T : Any>

Interface to implement custom mapping logic between Json and class of type T. Should be implemented on class companion object.

Link copied to clipboard
interface JsonModel

Marker interface that tells the compiler that given class is used as JSON model. Added to disable some code optimizations for DTO classes in builds where ProGuard or R8 is used to ensure that reflective JSON mapping will work fine.

Link copied to clipboard
annotation class JsonName(val name: String)

Sets custom JSON field name for class property or constructor parameter.

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

Property marked with this annotation will be skipped during serialization.