toJSON2 method

dynamic toJSON2(
  1. dynamic shapes,
  2. 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;
}