toMap method

Map<String, dynamic> toMap()

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,
  };
}