PathMatch.fromJson constructor

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

Implementation

factory PathMatch.fromJson(Map<String, dynamic> json) {
  return PathMatch(
    path: json['path'],
    coords: Coordinates.fromJson(json['coords']),
    distance: json['distance'],
    segment: json['segment'],
  );
}