InAppGenericTemplateElement
Represents an element of a generic template.
Represents an element of a generic template.
Properties
Properties | Type | Description |
---|---|---|
title | String | The title of the generic template element. |
subtitle | String | The subtitle of the generic template element. |
imageUrls | ArrayList | The image URLs of the generic template element. |
buttons | ArrayList | The buttons of the generic template element. |
Functions
toJson
Converts the generic template element to a JSONObject.
Syntax: fun toJson(): JSONObject
Return Value: The JSONObject converted from the generic template element.
Companion Functions
fromJson
Converts a JSONObject to a generic template element.
Syntax:fun fromJson(jsonObject: JSONObject): InAppGenericTemplateElement
Return Value The generic template element converted from the JSONObject.
Parameters
Parameters | Type | Description |
---|---|---|
jsonObject | JSONObject | The JSONObject to convert. |
Updated 8 days ago