data

inline fun <T : Any> SyncDocument.data(): T

Deserializes the SyncDocument.data into a value of type T using a deserializer retrieved from reified type parameter.

Type T must be annotated with @Serializable.

Throws

SerializationException

If the SyncDocument.data is not a valid JSON input for the type T.

If the decoded input cannot be represented as a valid instance of type T.


inline fun <T : Any> SyncList.Item.data(): T

Deserializes the SyncList.Item.data into a value of type T using a deserializer retrieved from reified type parameter.

Type T must be annotated with @Serializable.

Throws

SerializationException

If the SyncList.Item.data is not a valid JSON input for the type T.

If the decoded input cannot be represented as a valid instance of type T.


inline fun <T : Any> SyncMap.Item.data(): T

Deserializes the SyncMap.Item.data into a value of type T using a deserializer retrieved from reified type parameter.

Type T must be annotated with @Serializable.

Throws

SerializationException

If the SyncMap.Item.data is not a valid JSON input for the type T.

If the decoded input cannot be represented as a valid instance of type T.


inline fun <T : Any> SyncStream.Message.data(): T

Deserializes the SyncStream.Message.data into a value of type T using a deserializer retrieved from reified type parameter.

Type T must be annotated with @Serializable.

Throws

SerializationException

If the SyncDocument.data is not a valid JSON input for the type T.

If the decoded input cannot be represented as a valid instance of type T.