Package-level declarations

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FIELD])
annotation class JsonField(val name: String = "", val ignore: Boolean = false, val deserializer: KClass<out Deserializer<*>> = Deserializer::class)

Annotation for marking a field to be serialized to and deserialized from JSON.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class JsonType(val fieldNameStyle: JsonNameStyle = JsonNameStyle.HUMP, val fieldNamePrefix: String = "", val allowEmpty: Boolean = true, val deserializer: KClass<out Deserializer<*>> = Deserializer::class)

Annotation for marking a class to be serialized to and deserialized from JSON.