BMFDrivingRouteResult.fromMap constructor
- Map map
map => BMFDrivingRouteResult
Implementation
BMFDrivingRouteResult.fromMap(Map map)
: assert(map != null,
'Construct a BMFDrivingRouteResult,The parameter map cannot be null !') {
suggestAddrResult = map['suggestAddrResult'] == null
? null
: BMFSuggestAddrInfo.fromMap(map['suggestAddrResult']);
if (map['routes'] != null) {
routes = new List<BMFDrivingRouteLine>();
map['routes'].forEach((v) {
routes.add(BMFDrivingRouteLine.fromMap(v as Map));
});
}
if (map['taxiInfos'] != null) {
taxiInfos = new List<BMFTaxiInfo>();
map['taxiInfos'].forEach((v) {
taxiInfos.add(BMFTaxiInfo.fromMap(v as Map));
});
}
}