Skip to main content
Version: 1.5

Class: StatusList2021Entry

identity_wasm.StatusList2021Entry

StatusList2021Entry implementation.

Table of contents​

Constructors​

Methods​

Constructors​

constructor​

• new StatusList2021Entry(status_list, purpose, index, id?)

Creates a new StatusList2021Entry.

Parameters​

NameType
status_liststring
purposeStatusPurpose
indexnumber
id?null | string

Methods​

toJSON​

▸ toJSON(): Object

  • Return copy of self without private attributes.

Returns​

Object

▸ toJSON(): any

Serializes this to a JSON object.

Returns​

any


toString​

▸ toString(): string

Return stringified version of self.

Returns​

string


id​

▸ id(): string

Returns this credentialStatus's id.

Returns​

string


purpose​

▸ purpose(): StatusPurpose

Returns the purpose of this entry.

Returns​

StatusPurpose


index​

▸ index(): number

Returns the index of this entry.

Returns​

number


statusListCredential​

▸ statusListCredential(): string

Returns the referenced StatusList2021Credential's url.

Returns​

string


toStatus​

▸ toStatus(): Status

Downcasts this to Status

Returns​

Status


clone​

▸ clone(): StatusList2021Entry

Deep clones the object.

Returns​

StatusList2021Entry


fromJSON​

▸ Static fromJSON(json): StatusList2021Entry

Deserializes an instance from a JSON object.

Parameters​

NameType
jsonany

Returns​

StatusList2021Entry