Class: QgsEsriArcadeDictionaryElement

Represents a key-value entry in an Esri Arcade dictionary literal.

Eg the a: 5 part of the {a: 5, b: 6} dictionary literal.

Added in version 4.4.

List of all members, including inherited members

Constructor

__init__

Methods

clone

Creates a deep copy of the element.

dump

Formats the element as string.

isAutoKey

Returns True if the entry was defined using auto-keys.

key

Returns the entry key.

value

Returns the entry value expression.

class qgis.core.QgsEsriArcadeDictionaryElement[source]

Bases: object

__init__(key: str | None, value: QgsEsriArcadeExpression | None, isAutoKey: bool = False)

Constructor for QgsEsriArcadeDictionaryElement.

Ownership of value is transferred to this element.

Parameters:
clone(self) → QgsEsriArcadeDictionaryElement | None

Creates a deep copy of the element.

Caller takes ownership of the returned object.

Return type:

QgsEsriArcadeDictionaryElement|None

dump(self) → str[source]

Formats the element as string.

Return type:

str

isAutoKey(self) → bool[source]

Returns True if the entry was defined using auto-keys.

Return type:

bool

key(self) → str[source]

Returns the entry key.

Return type:

str

value(self) → QgsEsriArcadeExpression | None[source]

Returns the entry value expression.

Return type:

QgsEsriArcadeExpression|None