Class: CustomMethodData
identity_wasm.CustomMethodData
A custom verification method data format.
Table of contents
Constructors
Methods
Constructors
constructor
• new CustomMethodData(name
, data
)
Parameters
Name | Type |
---|---|
name | string |
data | any |
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
clone
▸ clone(): CustomMethodData
Deep clones the object.
Returns
fromJSON
▸ Static
fromJSON(json
): CustomMethodData
Deserializes an instance from a JSON object.
Parameters
Name | Type |
---|---|
json | any |