PropertyToDatasyncKey

annotation class PropertyToDatasyncKey(val value: String)

Annotation that defines a specific key for serializing a JSON property from a POJO class attribute.

By default, the key of the JSON property is inferred from the name of the corresponding getter: the getName getter writes the name property into the serialized JSON object.
This annotation is intended to POJO classes only!

Parameters

value

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

Constructors

Link copied to clipboard
fun PropertyToDatasyncKey(value: String)

Properties

Link copied to clipboard
val value: String