TMC.fromJson constructor

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

Implementation

TMC.fromJson(Map<String, dynamic> json) {
  distance = json['distance'];
  if (json['polyline'] != null) {
    polyline = [];
    json['polyline'].forEach((v) {
      polyline?.add(LatLng.fromJson(v));
    });
  }
  status = json['status'];
}