fromMap static method
Implementation
static StepManeuver fromMap(Map<String, dynamic> map) {
LatLng? location;
if (map.containsKey('location')) {
List<dynamic> points = map['location'];
location = LatLng(points[1], points[0]);
}
return StepManeuver(
degree: (map['degree'])?.toDouble(),
location: location,
bearingBefore: (map['bearing_before'])?.toDouble(),
bearingAfter: (map['bearing_after'])?.toDouble(),
instruction: map['instruction'],
type: map['type'],
modifier: map['modifier'],
exit: map['exit'],
);
}