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
@override dynamic toMap() { return toValue(); }