toMap method
Implementation
Map<String, dynamic> toMap() => {
"ascent": ascent,
"descent": descent,
"segments": segments == null
? []
: List<dynamic>.from(segments!.map((x) => x.toMap())),
"extras": extras?.toMap(),
"summary": summary?.toMap(),
"way_ponums": wayPonums == null
? []
: List<dynamic>.from(wayPonums!.map((x) => x)),
};