DatasyncKeyToProperty

annotation class DatasyncKeyToProperty(val value: String)

Annotation that defines a specific key for deserializing a JSON property to a POJO class attribute.

By default, the key of the JSON property is inferred from the name of the corresponding setter: the setName setter looks for the name property in the serialized JSON object.
This annotation is intended to POJO classes only!

Parameters

value

The key of the JSON property corresponding to the annotated setter.

Constructors

Link copied to clipboard
fun DatasyncKeyToProperty(value: String)

Properties

Link copied to clipboard
val value: String