TripExtraKeys.fromJson constructor

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

Implementation

TripExtraKeys.fromJson(Map<String, dynamic> json) {
  fleetName = json["fleetName"];
  fleetType = json["fleetType"];
  fleetNumber = json["fleetNumber"];
  tripType = json["tripType"];
  device = json["device"];
  policyNumber = json["policyNumber"];
  version = json["version"];
  wasCarNearbyDuringTrip = json["wasCarNearbyDuringTrip"];
  parkingLocation = json["parkingLocation"] == null
        ? null
        : LocationModelResponse.fromJson(json["parkingLocation"]);
}