toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final data = <String, dynamic>{};
  data['routePoiList'] = routePoiList?.map((it) => it.toJson()).toList();
  data['query'] = query;
  return data;
}