getJsonCoordinatePairs method

  1. @override
String getJsonCoordinatePairs()
override

Implementation

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

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

  for (var h in holes) {
    result += h.getJsonCoordinatePairs();
    result += "),";
  }

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

  return result;
}