IPropertiesObject

Represents an object that contains a collection of dynamically typed properties, each stored as a JSONObject with a 'type' and 'value' field.

This interface provides convenience methods to safely retrieve properties by their expected type.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val properties: JSONObject

The object containing the key-value pairs.

Functions

Link copied to clipboard
private fun doesKeyExist(key: String): Boolean
Link copied to clipboard

Get a boolean property.

Link copied to clipboard
open fun getImageProperty(key: String): String?

Get an image property.

Link copied to clipboard
open fun getJSONProperty(key: String): JSONObject?

Get a JSON property.

Link copied to clipboard

Get a number property.

Link copied to clipboard

Get a string property.

Link copied to clipboard

Get an datetime property.

Link copied to clipboard
private fun getValue(key: String, expectedPropertyType: String): Any?