toJSON2 function
Implementation
Map<String,dynamic> toJSON2(shapes, Map<String, dynamic>? options, data) {
if (shapes != null) {
data["shapes"] = [];
for (int i = 0, l = shapes.length; i < l; i++) {
final shape = shapes[i];
data["shapes"].add(shape.uuid);
}
}
if (options != null && options["extrudePath"] != null) {
data["options"]["extrudePath"] = options["extrudePath"].toJson();
}
return data;
}