Point.fromJson constructor

Point.fromJson(
  1. Map<String, dynamic> json
)

Creates a Point from JSON data.

Implementation

factory Point.fromJson(Map<String, dynamic> json) {
  final coordinates = json['coordinates'];

  return Point(_toLatLng(coordinates));
}