toJson method

Map<String, num> toJson()

Implementation

Map<String, num> toJson() => {'x': x, 'y': y};