RoutePoiResult.fromJson constructor

RoutePoiResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

RoutePoiResult.fromJson(Map<String, dynamic> json) {
  if (json['routePoiList'] != null) {
    routePoiList = [];
    json['routePoiList'].forEach((v) {
      routePoiList?.add(RoutePoiItem.fromJson(v));
    });
  }
  query = json['query'];
}