toJSON2 method
dynamic
toJSON2(
- dynamic shapes,
- dynamic data
Implementation
toJSON2(shapes, data) {
if (shapes != null) {
data["shapes"] = [];
for (var i = 0, l = shapes.length; i < l; i++) {
var shape = shapes[i];
data["shapes"].add(shape.uuid);
}
}
return data;
}