toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['baseUrl'] = baseUrl;
  data['profile'] = profile;

  data['alternatives'] = alternatives;
  data['language'] = language;
  data['bearings'] = bearings;
  data['continue_straight'] = continueStraight;
  data['roundabout_exits'] = roundaboutExits;
  data['geometries'] = geometries;
  data['overview'] = overview;
  data['steps'] = steps;
  data['annotations'] = annotations;
  data['voice_instructions'] = voiceInstructions;
  data['banner_instructions'] = bannerInstructions;
  data['voice_units'] = voiceUnits;
  return data;
}