Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/types/mod.ts>Json

Package publishing for deno.land/x/polkadot
Go to Latest
class Json
implements Codec
extends Map<string, any>
Re-export
import { Json } from "https://deno.land/x/polkadot@0.2.14/types/mod.ts";

Constructors

new
Json(registry: Registry, value?: Record<string, unknown> | null)

Properties

optional
createdAtHash: IU8a
readonly
encodedLength: number
readonly
hash: IU8a
readonly
isEmpty: boolean
readonly
registry: Registry

Methods

eq(other?: unknown): boolean
getT<T>(key: string): T
inspect(): Inspect
toHex(): HexString
toHuman(): Record<string, AnyJson>
toJSON(): Record<string, AnyJson>
toPrimitive(): Record<string, AnyJson>
toRawType(): string
toString(): string
toU8a(isBare?: boolean): Uint8Array