Skip to main content

@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

NameType
typeCredentialType
namestring
jsonRecord<string, any>

Returns

CredentialMetadata

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

Storable.uuid

Defined in

src/domain/models/CredentialMetadata.ts:5

Methods

isType

isType(type): boolean

Check the CredentialType of this Metadata

Parameters

NameType
typeCredentialType

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

Defined in

src/domain/models/CredentialMetadata.ts:28