Skip to main content

Properties

@iota/hierarchies API documentation


Class: Properties

Properties is a struct that contains a map of PropertyName to Property

Properties​

data​

readonly data: FederationProperty[]

Retrieves all property names and their corresponding property data as a JavaScript Map.

Returns

A list of Property objects.

Methods​

toJSON()​

toJSON(): Object

  • Return copy of self without private attributes.

Returns​

Object


toString()​

toString(): string

Return stringified version of self.

Returns​

string


add_property()​

add_property(property): void

Adds a new property to the properties list

Parameters​

property​

FederationProperty

Returns​

void