Location.fromJson constructor

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

Parses a Location from TDLib JSON.

Implementation

factory Location.fromJson(Map<String, dynamic> json) => Location(
  latitude: _readDouble(json['latitude']),
  longitude: _readDouble(json['longitude']),
  horizontalAccuracy: _readDouble(json['horizontal_accuracy']),
);