InAppGenericTemplateAttachment
Represents a generic template attachment.
Represents a generic template attachment and inherits from InAppTemplateAttachment.
Properties
Properties | Type | Description |
---|---|---|
id | String | The id of the generic template attachment. |
type | InAppTemplateType | The type of the generic template attachment. |
reference | String | The reference of the generic template attachment. |
contentType | String | The content type of the generic template attachment. |
elements | ArrayListInAppGenericTemplateElement | The elements of the generic template. |
Functions
toJson
Converts the generic template attachment to a JSONObject.
Syntax: fun toJson(): JSONObject
Return Value: The JSONObject converted from the generic template attachment.
Companion Functions
fromJson
Converts a JSONObject to an location attachment.
Syntax: fun fromJson(jsonObject: JSONObject): InAppGenericTemplateAttachment?
Return Value The location attachment converted from the JSONObject.
Parameters:
Parameter | Type | Description |
---|---|---|
jsonObject | JSONObject | The JSONObject to convert. |
Updated about 1 month ago