PolygonGeographicArea.fromJson constructor
Deserializes a JSON-compatible map to create an instance.
Used internally, not intended for direct use by consumers. The expected map structure may change without notice.
Implementation
factory PolygonGeographicArea.fromJson(final Map<String, dynamic> json) {
final List<Coordinates> coords = (json['coordinates'] as List<dynamic>)
.map((dynamic e) => Coordinates.fromJson(e))
.toList();
return PolygonGeographicArea(coordinates: coords);
}