Skip to main content

IotaDocumentMetadata

@iota/identity-wasm API documentation


Class: IotaDocumentMetadata

Additional attributes related to an IOTA DID Document.

Methods​

toJSON()​

Call Signature​

toJSON(): Object

  • Return copy of self without private attributes.
Returns​

Object

Call Signature​

toJSON(): any

Serializes this to a JSON object.

Returns​

any


toString()​

toString(): string

Return stringified version of self.

Returns​

string


created()​

created(): undefined | Timestamp

Returns a copy of the timestamp of when the DID document was created.

Returns​

undefined | Timestamp


updated()​

updated(): undefined | Timestamp

Returns a copy of the timestamp of the last DID document update.

Returns​

undefined | Timestamp


deactivated()​

deactivated(): undefined | boolean

Returns a copy of the deactivated status of the DID document.

Returns​

undefined | boolean


properties()​

properties(): Map<string, any>

Returns a copy of the custom metadata properties.

Returns​

Map<string, any>


fromJSON()​

static fromJSON(json): IotaDocumentMetadata

Deserializes an instance from a JSON object.

Parameters​

json​

any

Returns​

IotaDocumentMetadata


clone()​

clone(): IotaDocumentMetadata

Deep clones the object.

Returns​

IotaDocumentMetadata