serializeMarkerSet function

List<Map<String, dynamic>> serializeMarkerSet (
  1. Set<Marker> markers
)

Converts a Set of Markers into something serializable in JSON.

Implementation

List<Map<String, dynamic>> serializeMarkerSet(Set<Marker> markers) {
  if (markers == null) {
    return null;
  }
  return markers.map<Map<String, dynamic>>((Marker m) => m.toJson()).toList();
}