LiveLocation.fromJson constructor

LiveLocation.fromJson(
  1. Map<String, dynamic> json
)

Parses a LiveLocation from TDLib JSON.

Implementation

factory LiveLocation.fromJson(Map<String, dynamic> json) => LiveLocation(
  location: _readObject(json['location'], Location.fromJson),
  livePeriod: _readInt(json['live_period']),
  heading: _readInt(json['heading']),
  proximityAlertRadius: _readInt(json['proximity_alert_radius']),
);