toJson method
Serializes this encoded path model into a JSON-compatible map.
Implementation
Map<String, dynamic> toJson() => {
'pathModel': pathModel.toJson(),
'encodedPath': encodedPath,
'polylinePrecision': polylinePrecision,
'originalPointCount': originalPointCount,
'compressedPointCount': compressedPointCount,
'compressedDistance': compressedDistance,
};