Skip to main content

@bloock/sdk / Schema

Class: Schema

Represents a schema with its attributes.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Schema(cid, cidJsonLd, schemaType, json): Schema

Constructs a Schema object with the specified parameters.

Parameters

NameType
cidstring
cidJsonLdstring
schemaTypestring
jsonstring

Returns

Schema

Defined in

entity/identity/schema.ts:19

Properties

cid

cid: string

Defined in

entity/identity/schema.ts:7


cidJsonLd

cidJsonLd: string

Defined in

entity/identity/schema.ts:8


json

json: string

Defined in

entity/identity/schema.ts:10


schemaType

schemaType: string

Defined in

entity/identity/schema.ts:9

Methods

toProto

toProto(): Schema

Returns

Schema

Defined in

entity/identity/schema.ts:31


fromProto

fromProto(r): Schema

Parameters

NameType
rSchema

Returns

Schema

Defined in

entity/identity/schema.ts:40