InAppGenericTemplateElement

Represents an element of a generic template.

Represents an element of a generic template.

Properties

PropertiesTypeDescription
titleStringThe title of the generic template element.
subtitleStringThe subtitle of the generic template element.
imageUrlsArrayListThe image URLs of the generic template element.
buttonsArrayListThe 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

ParametersTypeDescription
jsonObjectJSONObjectThe JSONObject to convert.