toJson method

Map toJson()

Implementation

Map toJson() {
  var lineArr = [];
  lines.forEach((line) {
    lineArr.add(line.toJson()['coordinates']);
  });

  return {'type': 'MultiLineString', 'coordinates': lineArr};
}