toMap method Null safety
- @override
 
Implementation
@override
Map<String, Object?> toMap() {
  return {
    'distance': this.distance,
    'duration': this.duration?.toMap(),
    'starting': this.starting?.toMap(),
    'terminal': this.terminal?.toMap(),
    'title': this.title
  };
}