toJson method

Map<String, dynamic> toJson()

Returns a JSON representation of RegionPoint.

Implementation

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