BMFWalkingRouteResult.fromMap constructor

BMFWalkingRouteResult.fromMap(
  1. Map map
)

map => BMFWalkingRouteResult

Implementation

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

  if (map['BMFTaxiInfo'] != null) {
    taxiInfo = BMFTaxiInfo.fromMap(map['BMFTaxiInfo']);
  }
}