toJSON method

dynamic toJSON()

Implementation

toJSON() {
  Map<String, dynamic> data = {
    "metadata": {"version": 4.5, "type": 'Curve', "generator": 'Curve.toJSON'}
  };

  data["arcLengthDivisions"] = arcLengthDivisions;
  data["type"] = type;

  return data;
}