InAppLocationAttachment
Represents a location attachment.
Represents a location attachment and inherits from InAppAttachment.
Properties
Name | Return Type | Description |
---|---|---|
latitude | Double | The latitude of the location. |
longitude | Double | The longitude of the location. |
contentType | String | The content type of the attachment. |
Functions
toJson
Converts the location attachment to a JSONObject.
Syntax: fun toJson(): JSONObject
Return: The JSONObject converted from the location attachment.
Companion Functions
fromJson
Converts a JSONObject to an location attachment.
Syntax: fun fromJson(jsonObject: JSONObject): InAppThread
Return: The location attachment converted from the JSONObject.
Parameters:
Parameters | Type | Description |
---|---|---|
jsonObject | JSONObject | The JSONObject to convert. |
Updated about 1 month ago