RegionFeatureCollection.fromSerialized constructor

RegionFeatureCollection.fromSerialized(
  1. List data
)

Restores inner structures from the serialized data.

Implementation

RegionFeatureCollection.fromSerialized(List<dynamic> data) {
  regions = data[0];
  for (final region in regions) _cacheFeatureByIDs(region);
  whichPolygon = WhichPolygon.fromSerialized(data[1]);
}