toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['location'] = location;
  data['bearing_before'] = bearingBefore;
  data['bearing_after'] = bearingAfter;
  data['instruction'] = instruction;
  data['type'] = type;
  data['modifier'] = modifier;
  data['exit'] = exit;
  return data;
}