serializeCircleSet function

List<Map<String, dynamic>> serializeCircleSet (
  1. Set<Circle> circles
)

Converts a Set of Circles into something serializable in JSON.

Implementation

List<Map<String, dynamic>> serializeCircleSet(Set<Circle> circles) {
  if (circles == null) {
    return null;
  }
  return circles.map<Map<String, dynamic>>((Circle p) => p.toJson()).toList();
}