getJsonCoordinatePairs method

  1. @override
String getJsonCoordinatePairs()
override

Implementation

@override
String getJsonCoordinatePairs() {
  String result = "";

  result += "[";
  result += boundary.getJsonCoordinatePairs();
  result += ",";

  holes.forEach((h) {
    result += h.getJsonCoordinatePairs();
    result += "),";
  });

  result = result.substring(0, result.length - 1);
  result += "]";

  return result;
}