serializePolygonSet function

List<Map<String, dynamic>> serializePolygonSet (
  1. Set<Polygon> polygons
)

Converts a Set of Polygons into something serializable in JSON.

Implementation

List<Map<String, dynamic>> serializePolygonSet(Set<Polygon> polygons) {
  if (polygons == null) {
    return null;
  }
  return polygons.map<Map<String, dynamic>>((Polygon p) => p.toJson()).toList();
}