You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
deliveryboy/lib/model/getdeliveryboy_model.dart

69 lines
2.0 KiB

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 ;
double lat=0;
double lng=0;
Color cardColor=Colors.white;
GetDeliveryboyDetailsModel();
factory GetDeliveryboyDetailsModel.fromJson(Map<String, dynamic> 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'] ??'';
rtvm.lat = json['latitude'] ??0;
rtvm.lng = json['longitude'] ??0;
return rtvm;
}
}