toMap method
- @override
override
model -> map
Implementation
@override
Map<String, Object> toMap() {
return {
'distance': this.distance,
'duration': this.duration,
'points': this.points?.map((e) => e?.toMap())?.toList(),
'pointsCount': this.pointsCount,
'name': this.name,
'direction': this.direction,
'entrace': this.entrace?.toMap(),
'entraceInstruction': this.entraceInstruction,
'exit': this.exit?.toMap(),
'exitInstruction': this.exitInstruction,
'instruction': this.instruction,
'numTurns': this.numTurns,
'hasTrafficsInfo': this.hasTrafficsInfo,
'traffics': this.traffics?.map((e) => e)?.toList(),
'roadLevel': this.roadLevel
};
}