Skip to main content
@ai-billing/core
@ai-billing/core / toJSONObject

Function: toJSONObject()

toJSONObject(event): JSONObject
Defined in: packages/core/src/event/to-json-object.ts:9 Casts a billing event into a JSON object payload.

Parameters

event

BillingEvent<JSONObject> The billing event to cast.

Returns

JSONObject The billing event represented as a JSON object.
Last modified on October 29, 2026