class DriverTripsModel {

  String id = '';
  String bookingId = '';
  String tankerName = '';
  String buildingName = '';
  String address = '';
  String date = '';
  String time = '';
  String waterType = '';
  String capacity = '';
  String price = '';
  String status = '';
  String customerName = '';
  String amountPaid = '';
  String amountDue = '';
  String paymentStatus = '';

  DriverTripsModel();

  factory DriverTripsModel.fromJson(
      Map<String,dynamic> json){

    DriverTripsModel d =
    DriverTripsModel();

    d.id =
        json['_id'] ?? '';

    d.bookingId =
        json['bookingid'] ?? '';

    d.tankerName =
        json['tankerName'] ?? '';

    d.buildingName =
        json['buildingName'] ?? '';

    d.address =
        json['address'] ?? '';

    d.date =
        json['dateOfOrder'] ?? '';

    d.time =
        json['time'] ?? '';

    d.waterType =
        json['typeofwater'] ?? '';

    d.capacity =
        json['capacity'] ?? '';

    d.price =
        json['price'] ?? '';

    d.status =
        json['orderStatus'] ?? '';

    d.customerName =
        json['customerName'] ?? '';

    d.amountPaid =
        json['amount_paid'] ?? '';

    d.amountDue =
        json['amount_due'] ?? '';

    d.paymentStatus =
        json['payment_status'] ?? '';

    return d;

  }

}