Location.fromJson constructor
Implementation
factory Location.fromJson(Map<String, dynamic> json) {
return Location(
latitude: json['latitude'],
longitude: json['longitude'],
accuracy: json['accuracy'],
altitude: json['altitude'],
speed: json['speed'],
time: json['time'],
provider: json['provider'],
);
}