parseShapes method

dynamic parseShapes(
  1. dynamic json
)

Implementation

parseShapes(json) {
  var shapes = {};

  if (json != null) {
    for (var i = 0, l = json.length; i < l; i++) {
      var shape = Shape.fromJSON(json[i]);

      shapes[shape.uuid] = shape;
    }
  }

  return shapes;
}