serializePolylineSet function

List<Map<String, dynamic>> serializePolylineSet (
  1. Set<Polyline> polylines
)

Converts a Set of Polylines into something serializable in JSON.

Implementation

List<Map<String, dynamic>> serializePolylineSet(Set<Polyline> polylines) {
  if (polylines == null) {
    return null;
  }
  return polylines
      .map<Map<String, dynamic>>((Polyline p) => p.toJson())
      .toList();
}