toJSON method
Implementation
@override
toJSON() {
var data = super.toJSON();
data["autoClose"] = autoClose;
data["curves"] = [];
for (var i = 0, l = curves.length; i < l; i++) {
var curve = curves[i];
data["curves"].add(curve.toJSON());
}
return data;
}