OsrmIntersection.fromMap constructor
fromMap method to get the OsrmIntersection from a json map
Implementation
factory OsrmIntersection.fromMap(Map<String, dynamic> json) {
return OsrmIntersection(
location: json['location'] != null
? (json['location'][0], json['location'][1])
: null,
bearings: json['bearings'] != null
? (json['bearings'] as List).map((e) => e as num).toList()
: null,
entry: json['entry'] != null
? (json['entry'] as List).map((e) => e as bool).toList()
: null,
in_: json['in'],
out: json['out'],
lanes: json['lanes'] != null
? (json['lanes'] as List).map((e) => OsrmLane.fromMap(e)).toList()
: null,
);
}