Map<String, dynamic> toJson() => { 'start': start.toJson(), 'end': end.toJson(), 'stops': [for (final stop in stops) stop.toJson()], };