InAppInteractiveData
Represents interactive data.
Represents interactive data.
Properties
| Properties | Type | Description |
|---|---|---|
| id | String | StringThe ID of the interactive data.var id: String? |
| title | String | The title of the interactive data.var title: String? |
| reference | String | The reference of the interactive data.var reference: String? |
| payload | JSONObject | The payload of the interactive data.var payload: JSONObject? |
| actionUrl | String | The action URL of the interactive data.var actionUrl: String? |
| relatedTransactionId | String | The related transaction ID of the interactive data.var relatedTransactionId: String? |
| type | InAppInteractiveDataType | The type of interactive data.var type: InAppInteractiveDataType |
| submittedAt | Date | The submitted date of the interactive data.var submittedAt: Date? |
Functions
toJson
Converts the interactive data to a JSON object.
Syntax: fun toJson(): JSONObject
Return Value The JSON object representing the interactive data.
Companion Functions
fromJson
Converts a JSONobject to interactive data.
Syntax: fun fromJson(jsonObject: JSONObject): InAppInteractiveData
Return Value The interactive data is converted from the JSONobject.
Parameters
| Parameters | Type | Description |
|---|---|---|
| jsonObject | JSONObject | JSONObject to convert. |
Updated 12 months ago
