GeoCoordinates.fromJson constructor
Creates a new instance of GeoCoordinates from a JSON object.
The JSON object should contain keys 'latitude' and 'longitude' that map to the corresponding properties of a GeoCoordinates.
Implementation
factory GeoCoordinates.fromJson(Map<String, dynamic> json) {
return GeoCoordinates(
latitude: json['latitude'] as double?,
longitude: json['longitude'] as double?,
);
}