GeoPoint.fromMap constructor

GeoPoint.fromMap(
  1. JsonMap map
)

Implementation

factory GeoPoint.fromMap(JsonMap map) {
  return GeoPoint(
    latitude: (map['latitude'] as num?)?.toDouble() ?? 0.0,
    longitude: (map['longitude'] as num?)?.toDouble() ?? 0.0,
  );
}