TMC.fromJson constructor
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'];
}