ShareTripResponse.fromJson constructor
Implementation
ShareTripResponse.fromJson(Map<String, dynamic> json) {
shareStatus = json["shareStatus"];
if (json['sharedTripDetails'] != null) {
sharedTripDetails = <ShareTripDetailsModel>[];
json['sharedTripDetails'].forEach((v) {
sharedTripDetails!.add(ShareTripDetailsModel.fromJson(v));
});
}
}