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