toJSON method

  1. @override
dynamic toJSON()
override

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;
}