set Data
Serializes the given value into an equivalent JsonObject using a serializer retrieved from reified type parameter and set it as value of the SyncDocument.
Type T must be annotated with @Serializable.
Parameters
data
New document data.
Throws
Serialization Exception
If the given value cannot be serialized to JSON object.
Twilio Exception
When error occurred while updating the document.