toJSON method

List<num> toJSON()

Implementation

List<num> toJSON() {
  return [x, y];
}