GlobeCoordinates.fromMap constructor

GlobeCoordinates.fromMap(
  1. Map<String, dynamic> map
)

Creates a GlobeCoordinates object from a map.

The map should contain the latitude and longitude as key-value pairs.

Implementation

factory GlobeCoordinates.fromMap(Map<String, dynamic> map) {
  return GlobeCoordinates(
    map['latitude'] as double,
    map['longitude'] as double,
  );
}