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