Namespace: object
utils.object
Functions
decodeJSON
▸ decodeJSON<T
>(jsonByte
): T
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
jsonByte | Buffer |
Returns
T
Defined in
packages/klayr-decentralized-identifier/src/utils/object.ts:9
encodeJSON
▸ encodeJSON(json
): Buffer
Parameters
Name | Type |
---|---|
json | Record <string , any > |
Returns
Buffer
Defined in
packages/klayr-decentralized-identifier/src/utils/object.ts:5
serializer
▸ serializer<T
>(data
): JSONObject
<T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
data | Record <any , any > |
Returns
JSONObject
<T
>
Defined in
packages/klayr-decentralized-identifier/src/utils/object.ts:13