toJson method
Implementation
Map toJson() {
var lineArr = [];
lines.forEach((line) {
lineArr.add(line.toJson()['coordinates']);
});
return {'type': 'MultiLineString', 'coordinates': lineArr};
}
Map toJson() {
var lineArr = [];
lines.forEach((line) {
lineArr.add(line.toJson()['coordinates']);
});
return {'type': 'MultiLineString', 'coordinates': lineArr};
}