toJSON method

  1. @override
dynamic toJSON()
override

Implementation

@override
toJSON() {
  var data = super.toJSON();

  data["currentPoint"] = currentPoint.toArray();

  return data;
}