DatasyncKeyToProperty

annotation class DatasyncKeyToProperty(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

DatasyncKeyToProperty
Link copied to clipboard
fun DatasyncKeyToProperty(value: String)

Properties

value
Link copied to clipboard
val value: String