toMap method
Converts the GlobeCoordinates object to a map.
The map contains the latitude and longitude as key-value pairs.
Implementation
Map<String, dynamic> toMap() {
return <String, dynamic>{
'latitude': latitude,
'longitude': longitude,
};
}