Polygon.fromJson constructor

Polygon.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Polygon.fromJson(Map<String, dynamic> json) {
  x = double.parse(json['x'].toString());
  y = double.parse(json['y'].toString());
}