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