toJson method
Returns a JSON object representation of this instance.
Implementation
@override
Map<String,dynamic> toJson() {
Map<String,dynamic> data = super.toJson();
data["points"] = [];
for (int i = 0, l = points.length; i < l; i++) {
final point = points[i];
data["points"].add(point.copyIntoArray());
}
return data;
}