BMFDrivingStep.fromMap constructor
- Map map
map => BMFDrivingStep
Implementation
BMFDrivingStep.fromMap(Map map) : super.fromMap(map) {
direction = map['direction'];
entrace =
map['entrace'] == null ? null : BMFRouteNode.fromMap(map['entrace']);
entraceInstruction = map['entraceInstruction'];
exit = map['exit'] == null ? null : BMFRouteNode.fromMap(map['exit']);
exitInstruction = map['exitInstruction'];
instruction = map['instruction'];
numTurns = map['numTurns'];
hasTrafficsInfo = map['hasTrafficsInfo'];
if (map['traffics'] != null) {
traffics = new List<int>();
map['traffics'].forEach((v) {
traffics.add(v as int);
});
}
roadLevel = map['roadLevel'];
}