fromJson static method

Polygon fromJson(
  1. dynamic coordinates
)

Implementation

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

  return Polygon(lines);
}