Home > @magiclane/maps-sdk > ActivityRecord > fromJson
ActivityRecord.fromJson() method
Deserializes a JSON-compatible object to create an instance.
Used internally, not intended for direct use by consumers. The expected object structure may change without notice.
Signature:
static fromJson(json: Record<string, any>): ActivityRecord;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
json |
Record<string, any> |
The JSON object to deserialize |
Returns:
A new ActivityRecord instance