toMap method

  1. @override
Map<String, dynamic> toMap()
override

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(),
  };
}