IARoute.fromMap constructor
IARoute.fromMap(
- Map map
Implementation
IARoute.fromMap(Map map) : error = map['error'] {
List<IARoutingLeg> legs = [];
for (var leg in map['legs']) {
legs.add(IARoutingLeg.fromMap(leg));
}
this.legs = legs;
}