RouteSearchCityList.fromJson constructor

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

Implementation

RouteSearchCityList.fromJson(Map<String, dynamic> json) {
  if (json['districts'] != null) {
    districts = [];
    json['districts'].forEach((v) {
      districts?.add(Districts.fromJson(v));
    });
  }
}