toMap method
Implementation
Map<String, dynamic> toMap() => {
"distance": distance,
"duration": duration,
"steps": steps == null
? []
: List<dynamic>.from(steps!.map((x) => x.toMap())),
"ascent": ascent,
"descent": descent,
};