Map<String, dynamic> toJson() { return { 'from': from, 'to': to, 'mode': mode, 'searchType': searchType, 'range': range, 'polylines': polylines, }; }