toJSON method

dynamic toJSON()
inherited

Implementation

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

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

  return data;
}