toMap method
toMap method to get the OsrmIntersection as a json map
Implementation
@override
Map<String, dynamic> toMap() {
return {
'location': location != null ? location!.toCoordinateList() : null,
'bearings': bearings,
'entry': entry,
'in': in_,
'out': out,
'lanes': lanes?.map((e) => e.toMap()).toList(),
};
}