set Item
Serializes the given value into an equivalent JsonObject using a serializer retrieved from reified type parameter and set it as value of the SyncList.Item.
Type T must be annotated with @Serializable.
Return
SyncList.Item which has been set.
Parameters
item Index
Index of the item to set.
item Data
Item data to set.
Throws
Serialization Exception
If the itemData cannot be serialized to JSON object.
Twilio Exception
When error occurred while updating the item.
Serializes the given value into an equivalent JsonObject using a serializer retrieved from reified type parameter and set it as value of the SyncMap.Item.
Type T must be annotated with @Serializable.
Return
SyncMap.Item which has been set.
Parameters
item Key
Key of the item to set.
item Data
Item data to set.
Throws
Serialization Exception
If the itemData cannot be serialized to JSON object.
Twilio Exception
When error occurred while updating the document.