Skip to content

@gala-chain/apiAPI


API > deserialize

Function: deserialize()

deserialize\<T, BaseT>(constructor, object): T

Type parameters

T

BaseT = unknown

Parameters

constructor: ClassConstructor\<Inferred\<T, BaseT>>

object: string | Record\<string, unknown> | Record\<string, unknown>[]

Source

chain-api/src/utils/deserialize.ts:31