toValue method
dynamic
toValue()
toValue method to get the OsrmGeometry as a dynamic value
Implementation
dynamic toValue() {
if (lineString != null) {
return lineString!.toMap();
} else if (polyline != null) {
return polyline;
} else if (polyline6 != null) {
return polyline6;
} else {
throw ArgumentError('Invalid geometry: $this');
}
}