RouteResult.fromJson constructor

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

Implementation

RouteResult.fromJson(Map<String, dynamic> json) {
  if (json['paths'] != null) {
    paths = <Path>[];
    json['paths'].forEach((v) {
      paths!.add(Path.fromJson(v));
    });
  }
}