State.toJSON() method​
Signature:
toJSON(): Omit<this, "toJSON" | "meta" | "tags" | "configuration" | "machine" | "toStrings" | "matches" | "hasTag" | "can" | "nextEvents"> & {
tags: string[];
meta: Record<string, any>;
};
Returns:
Omit<this, "toJSON" | "meta" | "tags" | "configuration" | "machine" | "toStrings" | "matches" | "hasTag" | "can" | "nextEvents"> & { tags: string[]; meta: Record<string, any>; }