InAppGenericTemplateAttachment

Represents a generic template attachment.

Represents a generic template attachment and inherits from InAppTemplateAttachment.

Properties

PropertiesTypeDescription
idStringThe id of the generic template attachment.
typeInAppTemplateTypeThe type of the generic template attachment.
referenceStringThe reference of the generic template attachment.
contentTypeStringThe content type of the generic template attachment.
elementsArrayListInAppGenericTemplateElementThe 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:

ParameterTypeDescription
jsonObjectJSONObjectThe JSONObject to convert.