fromMap static method
override
Construct from Map.
Implementation
static MessageLocation? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var location = Location.fromMap(_map['location'])!;
var live_period = _map['live_period']! as int;
var expires_in = _map['expires_in']! as int;
var heading = _map['heading']! as int;
var proximity_alert_radius = _map['proximity_alert_radius']! as int;
return MessageLocation(
extra: extra,
clientId: clientId,
location: location,
live_period: live_period,
expires_in: expires_in,
heading: heading,
proximity_alert_radius: proximity_alert_radius,
);
}