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