keyByCircleId function Null safety

Map<CircleId, Circle> keyByCircleId(
  1. Iterable<Circle> circles
)

Converts an Iterable of Circles in a Map of CircleId -> Circle.

Implementation

Map<CircleId, Circle> keyByCircleId(Iterable<Circle> circles) {
  return keyByMapsObjectId<Circle>(circles).cast<CircleId, Circle>();
}