BMFIndoorRouteStep.fromMap constructor

BMFIndoorRouteStep.fromMap(
  1. Map map
)

map => BMFIndoorRouteStep

Implementation

BMFIndoorRouteStep.fromMap(Map map) : super.fromMap(map) {
  entrace =
      map['entrace'] == null ? null : BMFRouteNode.fromMap(map['entrace']);
  exit = map['exit'] == null ? null : BMFRouteNode.fromMap(map['exit']);
  instructions = map['instructions'];
  buildingid = map['buildingid'];
  floorid = map['floorid'];
  if (map['indoorStepNodes'] != null) {
    indoorStepNodes = new List<BMFIndoorStepNode>();
    map['indoorStepNodes'].forEach((v) {
      indoorStepNodes.add(BMFIndoorStepNode.fromMap(v as Map));
    });
  }
}