@atala/prism-wallet-sdk / Exports / Domain / CredentialMetadata
Class: CredentialMetadata
Domain.CredentialMetadata
Storable define properties a Domain object must implement to be compatible with Pluto
Implements
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new CredentialMetadata(type
, name
, json
): CredentialMetadata
Parameters
Name | Type |
---|---|
type | CredentialType |
name | string |
json | Record <string , any > |
Returns
Defined in
src/domain/models/CredentialMetadata.ts:7
Properties
json
• Private
Readonly
json: Record
<string
, any
>
Defined in
src/domain/models/CredentialMetadata.ts:10
name
• Readonly
name: string
Defined in
src/domain/models/CredentialMetadata.ts:9
type
• Readonly
type: CredentialType
Defined in
src/domain/models/CredentialMetadata.ts:8
uuid
• Readonly
uuid: string
Universally Unique Identifier. should be unique across all items.
Implementation of
Defined in
src/domain/models/CredentialMetadata.ts:5
Methods
isType
▸ isType(type
): boolean
Check the CredentialType of this Metadata
Parameters
Name | Type |
---|---|
type | CredentialType |
Returns
boolean
Defined in
src/domain/models/CredentialMetadata.ts:19
toJSON
▸ toJSON(): Record
<string
, any
>
Get the raw CredentialMetadata JSON
Returns
Record
<string
, any
>
JSON