import 'package:flutter/material.dart'; class GetDeliveryboyDetailsModel { String tankerName = ''; String bookingid = ''; String supplierId = ''; String dateOfOrder=''; String typeofwater=''; String delivery_agent_mobile=''; String capacity=''; String address=''; String price=''; String customerId=''; String startTime = ''; String stopTime = ''; String orderStatus = ''; String initialWaterLevel = ''; String finalWaterLevel = ''; String quantityDelivered = ''; String amountPaid = ''; String amountDue = ''; String paymentMode = ''; String deliverdWater = ''; var tankerRunningStatus ; Color cardColor=Colors.white; GetDeliveryboyDetailsModel(); factory GetDeliveryboyDetailsModel.fromJson(Map json){ GetDeliveryboyDetailsModel rtvm = new GetDeliveryboyDetailsModel(); rtvm.tankerName = json['tankerName'] ?? ''; rtvm.bookingid = json['bookingid'] ?? ''; rtvm.supplierId = json['supplierId'] ?? ''; rtvm.dateOfOrder = json['dateOfOrder'] ??''; rtvm.typeofwater = json['typeofwater'] ??''; rtvm.delivery_agent_mobile = json['delivery_agent_mobile'] ??''; rtvm.capacity = json['capacity'] ??''; rtvm.address = json['address'] ??''; rtvm.price = json['price'] ??''; rtvm.orderStatus = json['orderStatus'] ??''; rtvm.customerId = json['customerId'] ??''; rtvm.startTime = json['start_time'] ??''; rtvm.stopTime = json['stop_time'] ??''; rtvm.initialWaterLevel = json['initial_water_level'] ??''; rtvm.finalWaterLevel = json['final_water_level'] ??''; rtvm.quantityDelivered = json['quantityDelivered'] ??''; rtvm.amountPaid = json['amount_paid'] ??''; rtvm.amountDue = json['amount_due'] ??''; rtvm.paymentMode = json['payment_mode'] ??''; rtvm.deliverdWater = json['quantityDelivered'] ??''; rtvm.tankerRunningStatus = json['tankerRunningStatus'] ??''; return rtvm; } }