Maneuver.fromJson constructor

Maneuver.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Maneuver.fromJson(Map<String, dynamic> json) {
  location = json['location'].cast<num>();
  bearingBefore = json['bearing_before'];
  bearingAfter = json['bearing_after'];
  instruction = json['instruction'];
  type = json['type'];
  modifier = json['modifier'];
  exit = json['exit'];
}