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
Name | Type |
---|---|
status_list | string |
purpose | StatusPurpose |
index | number |
id? | 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
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
clone
▸ clone(): StatusList2021Entry
Deep clones the object.
Returns
fromJSON
▸ Static
fromJSON(json
): StatusList2021Entry
Deserializes an instance from a JSON object.
Parameters
Name | Type |
---|---|
json | any |