toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts the GeoJsonFeatureCollection to a Map with keys 'type', 'bbox' and 'features'.

The 'bbox' key is converted to list of 4 doubles implying 2 coordinates.

Implementation

@override
Map<String, dynamic> toJson() => super.toJson()
  ..addEntries(
    <MapEntry<String, dynamic>>[
      MapEntry<String, dynamic>('information', information.toJson()),
    ],
  );