Home > @magiclane/maps-sdk > LocationForecast > fromJson

LocationForecast.fromJson() method

Deserializes a JSON-compatible map to create an instance.

Signature:

static fromJson(json: Record<string, any>): LocationForecast;

Parameters

Parameter

Type

Description

json

Record<string, any>

JSON map representation

Returns:

LocationForecast

LocationForecast instance