@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
| Name | Type |
|---|---|
cid | string |
cidJsonLd | string |
schemaType | string |
json | string |
Returns
Defined in
Properties
cid
• cid: string
Defined in
cidJsonLd
• cidJsonLd: string
Defined in
json
• json: string
Defined in
schemaType
• schemaType: string
Defined in
Methods
toProto
▸ toProto(): Schema
Returns
Schema
Defined in
fromProto
▸ fromProto(r): Schema
Parameters
| Name | Type |
|---|---|
r | Schema |