Home > @magiclane/maps-sdk > GemParameter > asJson

GemParameter.asJson() method

Returns the parameter as a JSON object.

Signature:

asJson(): Record<string, any> | null;

Returns:

Record<string, any> | null

A JSON object containing the parameter's key, value, and name if available. Returns null if key, value, or type is null.