Geolocation.fromJson constructor
Geolocation.fromJson(
- dynamic json
Creates a new Geolocation from a json
respones
Implementation
factory Geolocation.fromJson(dynamic json) {
return Geolocation(
latitude: (json['lat'] as num).toDouble(),
longitude: (json['lon'] as num).toDouble(),
);
}