toJson method

Map<String, double> toJson()

Implementation

Map<String, double> toJson() {
  return {'x': x, 'y': y};
}