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