toMap method

  1. @override
dynamic toMap()
override

toMap method to get the OsrmGeometry as a json map here toMap is little bit different from other models it can return a Map or a String

Implementation

@override
dynamic toMap() {
  return toValue();
}