add List Item
inline suspend fun <T : Any> Lists.addListItem(listSidOrUniqueName: String, itemData: T): SyncList.Item
Serializes the given value into an equivalent JsonObject using a serializer retrieved from reified type parameter and adds it as a new item to the end of the specified SyncList.
Type T must be annotated with @Serializable.
Return
SyncList.Item which has been added.
Parameters
list Sid Or Unique Name
SID or unique name of existing SyncList.
item Data
Item data to add.
Throws
Serialization Exception
If the itemData cannot be serialized to JSON object.
Twilio Exception
When error occurred while adding the item.