toMap method
Implementation
Map<String, dynamic> toMap() => {
"distance": distance,
"duration": duration,
"type": type,
"instruction": instruction,
"name": name,
"way_points": wayPonums == null
? []
: List<dynamic>.from(wayPonums!.map((x) => x)),
};