BMFIndoorRouteResult.fromMap constructor

BMFIndoorRouteResult.fromMap(
  1. Map map
)

map => BMFIndoorRouteResult

Implementation

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