method JsonSerializer.prototype.deserialize
Since 0.1.0
JsonSerializer.prototype.deserialize<T = unknown>(payload: string): T

Deserializes a JSON string to a value.

Type Parameters

T = unknown

The expected payload type

Parameters

payload: string

The JSON string to deserialize

Return Type

The deserialized value

Usage

import { JsonSerializer } from "messaging-plugin/src/index.ts";