TimeDistanceMatrixLocation.fromJson constructor

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

Generates a TimeDistanceMatrixLocation from a Map having String keys 'latitude' and 'longitude', respectively having latitude and longitude as double values.

Implementation

factory TimeDistanceMatrixLocation.fromJson(Map<String, dynamic> json) =>
    TimeDistanceMatrixLocation(
      snappedDistance: json['snapped_distance'],
      location: ORSCoordinate.fromList(json['location'] as List<dynamic>),
    );