fromJson static method
Implementation
static Polygon fromJson(coordinates) {
List<LineString> lines = [];
coordinates.forEach((line) {
lines.add(LineString.fromJson(line));
});
return Polygon(lines);
}
static Polygon fromJson(coordinates) {
List<LineString> lines = [];
coordinates.forEach((line) {
lines.add(LineString.fromJson(line));
});
return Polygon(lines);
}