BMFDrivingRoutePlanOption.fromMap constructor

BMFDrivingRoutePlanOption.fromMap(
  1. Map map
)

map => BMFDrivingRoutePlanOption

Implementation

BMFDrivingRoutePlanOption.fromMap(Map map) : super.fromMap(map) {
  if (map['wayPointsArray'] != null) {
    wayPointsArray = new List<BMFPlanNode>();
    map['wayPointsArray'].forEach((v) {
      wayPointsArray.add(BMFPlanNode.fromMap(v as Map));
    });
  }
  drivingPolicy = BMFDrivingPolicy.values[map['drivingPolicy'] as int];
  drivingRequestTrafficType = BMFDrivingRequestTrafficType
      .values[map['drivingRequestTrafficType'] as int];
}