OsrmVoiceInstructions.fromMap constructor

OsrmVoiceInstructions.fromMap(
  1. Map<String, dynamic> json
)

fromMap method to get the OsrmVoiceInstructions from a json map

Implementation

factory OsrmVoiceInstructions.fromMap(Map<String, dynamic> json) {
  return OsrmVoiceInstructions(
    distanceAlongGeometry: json['distanceAlongGeometry'],
    announcement: json['announcement'],
    ssmlAnnouncement: json['ssmlAnnouncement'],
  );
}